From 7b39195873f02a5bb9c183df968ef9b60d19a6bd Mon Sep 17 00:00:00 2001 From: Sirttas Date: Wed, 26 Jul 2023 14:13:41 +0200 Subject: [PATCH] cors --- nginx.conf | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/nginx.conf b/nginx.conf index 64c7fe1..c33643e 100644 --- a/nginx.conf +++ b/nginx.conf @@ -1,5 +1,6 @@ server { - add_header Access-Control-Allow-Origin 'https://api.eveal.shendai.rip,https://evepraisal.shendai.rip'; - add_header Access-Control-Allow-Methods 'GET, POST, OPTIONS'; - add_header Access-Control-Allow-Headers 'Content-Type'; + add_header Access-Control-Allow-Origin 'https://api.eveal.shendai.rip,https://evepraisal.shendai.rip' always; + add_header Access-Control-Allow-Methods 'GET, POST, OPTIONS' always; + add_header 'Access-Control-Allow-Headers' 'DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range' always; + add_header 'Access-Control-Expose-Headers' 'Content-Length,Content-Range' always; } \ No newline at end of file