Skip to content

Commit

Permalink
lmao
Browse files Browse the repository at this point in the history
  • Loading branch information
AlekEagle committed Apr 1, 2024
1 parent bae1497 commit 772aa17
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions nginx/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,12 @@ server {
location ~ ^/api/?(.*) {
# DO NOT cache for API requests
add_header Cache-Control "no-store";
add_header Access-Control-Allow-Origin $cors_allow_origin always;
add_header Access-Control-Allow-Headers $cors_allow_headers always;
add_header Access-Control-Allow-Methods $cors_allow_methods always;
add_header Access-Control-Allow-Credentials "true" always;
add_header Access-Control-Max-Age $cors_max_age always;
add_header Access-Control-Expose-Headers $cors_expose_headers always;
if ($request_method = 'OPTIONS') {
return 204;
}
Expand Down

0 comments on commit 772aa17

Please sign in to comment.