fix: add CORS headers to PUT-responses as well
This commit is contained in:
+10
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user