diff --git a/nginx.conf b/nginx.conf index ae5f810..322b94a 100644 --- a/nginx.conf +++ b/nginx.conf @@ -91,6 +91,11 @@ http { resolver 8.8.8.8 valid=300s; resolver_timeout 10s; add_header 'Access-Control-Expose-Headers' 'X-File-Url'; + add_header 'Access-Control-Allow-Origin' "*" ; + add_header 'Access-Control-Allow-Credentials' 'true' ; + add_header 'Access-Control-Allow-Methods' 'GET, PUT, OPTIONS' ; + add_header 'Access-Control-Allow-Headers' 'Accept,Authorization,Cache-Control,Content-Type,DNT,If-Modified-Since,Keep-Alive,Origin,User-Agent,X-Requested-With'; + add_header 'Access-Control-Max-Age' 1728000; proxy_pass $url; } @@ -153,6 +158,11 @@ http { resolver 8.8.8.8 valid=300s; resolver_timeout 10s; add_header 'Access-Control-Expose-Headers' 'X-File-Url'; + add_header 'Access-Control-Allow-Origin' "*" ; + add_header 'Access-Control-Allow-Credentials' 'true' ; + add_header 'Access-Control-Allow-Methods' 'GET, PUT, OPTIONS' ; + add_header 'Access-Control-Allow-Headers' 'Accept,Authorization,Cache-Control,Content-Type,DNT,If-Modified-Since,Keep-Alive,Origin,User-Agent,X-Requested-With'; + add_header 'Access-Control-Max-Age' 1728000; proxy_pass $url; }