Skip to content

Commit

Permalink
tested different CORS configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
CommanderStorm committed Jan 14, 2024
1 parent b26142d commit 1fd1df7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions data/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,10 @@ http {
gzip_vary on;

# we allow other sites to fetch from us as we don't have any login/.. functionality => no cookies
add_header 'Access-Control-Allow-Origin' '*' always;
add_header 'Access-Control-Allow-Methods' 'GET, OPTIONS' always;
location / {
add_header 'Access-Control-Allow-Origin' '*' always;
add_header 'Access-Control-Allow-Methods' 'GET, OPTIONS' always;
}

location = /cdn/health {
access_log off;
Expand Down
6 changes: 4 additions & 2 deletions webclient/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,10 @@ http {
root /app;

# we allow other sites to fetch from us as we don't have any login/.. functionality => no cookies
add_header 'Access-Control-Allow-Origin' '*' always;
add_header 'Access-Control-Allow-Methods' 'GET, OPTIONS' always;
location / {
add_header 'Access-Control-Allow-Origin' '*' always;
add_header 'Access-Control-Allow-Methods' 'GET, OPTIONS' always;
}

# metadata
location = /robots.txt { access_log off; }
Expand Down

0 comments on commit 1fd1df7

Please sign in to comment.