This commit is contained in:
Karol Wypchlo 2020-07-27 17:18:09 +02:00
parent 7090edc5e7
commit 18ae436087
2 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
more_set_headers 'Access-Control-Allow-Origin: *';
more_set_headers 'Access-Control-Allow-Methods: GET, POST, OPTIONS, PUT, DELETE';
more_set_headers 'Access-Control-Allow-Headers: DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range';
more_set_headers 'Access-Control-Expose-Headers: Content-Length,Content-Range';
more_set_headers 'Access-Control-Expose-Headers: Content-Length,Content-Range';

View File

@ -12,4 +12,4 @@ if ($request_method = 'OPTIONS') {
add_header 'Content-Type' 'text/plain; charset=utf-8';
add_header 'Content-Length' 0;
return 204;
}
}