Skip to content

Commit 7fcfd15

Browse files
authored
Add CORS headers and update Vary header in nginx.conf
1 parent afdd008 commit 7fcfd15

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

nginx.conf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ http {
3333
}
3434
return 404;
3535
}
36+
3637
location ~ "^/geode/" {
3738
limit_except DELETE GET POST PUT OPTIONS {
3839
deny all;
@@ -43,7 +44,7 @@ http {
4344
add_header 'Access-Control-Allow-Methods' 'GET, POST, PUT, DELETE, PATCH, OPTIONS' always;
4445
add_header 'Access-Control-Allow-Headers' 'DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range,Authorization,X-CSRF-Token' always;
4546
add_header 'Access-Control-Expose-Headers' 'Content-Length,Content-Range' always;
46-
add_header 'Vary'
47+
add_header 'Vary' 'Origin' always;
4748

4849
rewrite "^/geode/(.*)" /$1 break;
4950
proxy_pass http://localhost:5000;

0 commit comments

Comments
 (0)