Skip to content

Commit

Permalink
nginx fix
Browse files Browse the repository at this point in the history
  • Loading branch information
aditansh committed Mar 15, 2024
1 parent c66e3d3 commit 1e0894b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nginx/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ http {
location / {

if ($request_method = 'OPTIONS') {
add_header 'Access-Control-Allow-Origin' 'https://for-your-eyes-only.codechefvit.com';
add_header 'Access-Control-Allow-Origin' 'https://portal.devsoc.codechefvit.com/';
add_header 'Access-Control-Allow-Credentials' 'true';
add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS, PUT, DELETE, PATCH';
add_header 'Access-Control-Allow-Headers' 'DNT,X-CustomHeader,Keep-Alive,Authorization,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type';
Expand All @@ -46,7 +46,7 @@ http {
return 204;
}

add_header 'Access-Control-Allow-Origin' 'https://for-your-eyes-only.codechefvit.com' always;
add_header 'Access-Control-Allow-Origin' 'https://portal.devsoc.codechefvit.com/' always;
add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS, PATCH, DELETE' always;
add_header 'Access-Control-Allow-Headers' 'DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range' always;
add_header 'Access-Control-Expose-Headers' 'Content-Length,Content-Range' always;
Expand Down

0 comments on commit 1e0894b

Please sign in to comment.