Skip to content

Commit

Permalink
Fix CORS handling
Browse files Browse the repository at this point in the history
  • Loading branch information
sdepold committed Sep 11, 2023
1 parent 38bbe21 commit 77bf6b8
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions ops/nginx/feedr.conf
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,16 @@ server {
}

location / {
if ($arg_q) {
rewrite ^ /api/ permanent;
}

proxy_pass http://website:3000;
proxy_http_version 1.1;

proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $host;

if ($arg_q) {
rewrite ^ /api/;
}

proxy_pass http://website:3000;
}
}

0 comments on commit 77bf6b8

Please sign in to comment.