forked from ISTI-ansible-roles/ansible-roles
fix in nginx-cors.conf
This commit is contained in:
parent
9a779358c4
commit
fcc48bc005
|
@ -51,7 +51,6 @@ add_header 'Access-Control-Allow-Origin' '*';
|
|||
add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS';
|
||||
add_header 'Access-Control-Allow-Headers' 'Accept,Authorization,Cache-Control,Content-Type,DNT,If-Modified-Since,Keep-Alive,Origin,User-Agent,X-Mx-ReqToken,X-Requested-With';
|
||||
{% if nginx_cors_limit_origin %}
|
||||
}
|
||||
if ($request_method = 'OPTIONS') {
|
||||
return 204;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue