Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions infra/nginx/nginx.prod.conf
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,8 @@ http {
# API clients expect JSON — an HTML response breaks their parsing.
# -------------------------------------------------------------------
location @rate_limit_error {
add_header 'Access-Control-Allow-Origin' '*' always;
add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS' always;
default_type application/json;
return 429 '{"status":429,"error":"Too Many Requests","message":"Rate limit exceeded. Please try again later."}';
}
Expand Down
Loading