Skip to content

Commit

Permalink
wtf
Browse files Browse the repository at this point in the history
  • Loading branch information
cmyui committed Aug 8, 2024
1 parent b219701 commit d4027c4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions sites-enabled/next.conf
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ server {
add_header 'Access-Control-Allow-Credentials' 'true';
return 200;
}
add_header 'Access-Control-Allow-Origin' $cors_allowed_origin always;
add_header 'Access-Control-Allow-Methods' 'GET, POST, PUT, PATCH, DELETE, OPTIONS';
add_header 'Access-Control-Allow-Headers' 'origin, content-type, accept';
add_header 'Access-Control-Allow-Credentials' 'true';

limit_req zone=users_zone burst=10 nodelay;
limit_req_status 429;
Expand Down

0 comments on commit d4027c4

Please sign in to comment.