From f145215b8fc595195c3fd3c2b618cac1c8aa3de2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Odini?= Date: Wed, 13 Nov 2024 17:35:46 +0100 Subject: [PATCH] chore: add CORS headers to data (#564) --- nginx.conf | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/nginx.conf b/nginx.conf index c4bcd633..319ecdea 100644 --- a/nginx.conf +++ b/nginx.conf @@ -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'; } } }