Skip to content

Commit

Permalink
allow OPTIONS method in cors
Browse files Browse the repository at this point in the history
  • Loading branch information
matyson committed May 20, 2024
1 parent e61e984 commit a29a555
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ http {
proxy_set_header X-Forwarded-Proto $scheme;

add_header Access-Control-Allow-Origin '*' always;
add_header Access-Control-Allow-Methods 'GET, POST' always;
add_header Access-Control-Allow-Methods 'GET, POST, OPTIONS' always;
add_header Access-Control-Allow-Headers 'Content-Type, Origin, Accept, Authorization, X-Request-With, X-API-KEY' always;
add_header Access-Control-Allow-Credentials 'true' always;
}
Expand Down

0 comments on commit a29a555

Please sign in to comment.