Skip to content

Commit

Permalink
chore: add CORS headers to data (#564)
Browse files Browse the repository at this point in the history
  • Loading branch information
raphodn authored Nov 13, 2024
1 parent 2b867db commit f145215
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,12 @@ http {

location /data {
alias /var/data-dump;

# Add CORS headers
add_header 'Access-Control-Allow-Origin' '*';
add_header 'Access-Control-Allow-Methods' 'GET, OPTIONS';
add_header 'Access-Control-Allow-Headers' 'DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range';
add_header 'Access-Control-Expose-Headers' 'Content-Length,Content-Range';
}
}
}

0 comments on commit f145215

Please sign in to comment.