master
nannal 3 years ago
parent 6af614c70a
commit ca2064f5aa

@ -39,6 +39,15 @@ http {
root /usr/share/nginx/html;
index index.html index.htm;
add_header 'Access-Control-Allow-Origin' *;
if ($request_method = OPTIONS ) {
add_header "Access-Control-Allow-Origin" *;
add_header "Access-Control-Allow-Methods" "GET, POST, OPTIONS, HEAD";
add_header "Access-Control-Allow-Headers" "Authorization, Origin, X-Requested-With, Content-Type, Accept";
return 200;
}
if ($request_method ~* "(GET|POST)") {
add_header "Access-Control-Allow-Origin" *;
}
}
#error_page 404 /404.html;

Loading…
Cancel
Save