add cors
This commit is contained in:
parent
711c5166ca
commit
69cb156934
@ -14,4 +14,11 @@ location /~static/ {
|
|||||||
|
|
||||||
location / {
|
location / {
|
||||||
try_files $uri @drop_app;
|
try_files $uri @drop_app;
|
||||||
|
if ($request_method = OPTIONS) {
|
||||||
|
return 204;
|
||||||
|
}
|
||||||
|
add_header Access-Control-Allow-Origin *;
|
||||||
|
add_header Access-Control-Max-Age 3600;
|
||||||
|
add_header Access-Control-Expose-Headers Content-Length;
|
||||||
|
add_header Access-Control-Allow-Headers Range;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user