Skip to content

Commit

Permalink
Removed CORS while we figure out some weirdness with Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
dgraziotin committed Dec 9, 2021
1 parent d6ba5d6 commit 0125aa2
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -63,25 +63,6 @@ http {
fancyindex_localtime on;
fancyindex_name_length 255;

# CORS, from https://github.com/fraoustin/webdav
add_header 'Access-Control-Allow-Origin' '*' always;
add_header 'Access-Control-Allow-Credentials' 'true' always;
add_header 'Access-Control-Allow-Methods' 'GET, HEAD, POST, PUT, OPTIONS, MOVE, DELETE, COPY, LOCK, UNLOCK' always;
add_header 'Access-Control-Allow-Headers' 'Authorization,DNT,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,X-Accept-Charset,X-Accept,origin,accept,if-match,destination,overwrite' always;
add_header 'Access-Control-Expose-Headers' 'ETag' always;
add_header 'Access-Control-Max-Age' 1728000 always;
if ($request_method = 'OPTIONS') {
add_header 'Content-Type' 'text/plain charset=UTF-8';
add_header 'Content-Length' 0;
add_header 'Access-Control-Allow-Origin' '*';
add_header 'Access-Control-Allow-Credentials' 'true';
add_header 'Access-Control-Allow-Methods' 'GET, HEAD, POST, PUT, OPTIONS, MOVE, DELETE, COPY, LOCK, UNLOCK';
add_header 'Access-Control-Allow-Headers' 'Authorization,DNT,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,X-Accept-Charset,X-Accept,origin,accept,if-match,destination,overwrite';
add_header 'Access-Control-Expose-Headers' 'ETag';
add_header 'Access-Control-Max-Age' 1728000;
return 204;
}


set $destination $http_destination;
set $parse "";
Expand Down

0 comments on commit 0125aa2

Please sign in to comment.