Browse Source

add cors

master
bakatrouble 11 months ago
parent
commit
69cb156934
1 changed files with 7 additions and 0 deletions
  1. +7
    -0
      configs/nginx_include.conf

+ 7
- 0
configs/nginx_include.conf View File

@ -14,4 +14,11 @@ location /~static/ {
location / {
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…
Cancel
Save