Merge pull request 'Added 'always' directive as default to the 'Access-Control-Allow-Origin', see #28488#note-24' (!3) from new_cors_configs into master
Reviewed-on: #3
This commit is contained in:
commit
4b04781a9d
|
@ -53,7 +53,7 @@ proxy_hide_header Access-Control-Allow-Origin;
|
||||||
add_header 'Access-Control-Allow-Origin' '{{ nginx_cors_acl_origin | default("$http_origin") }}';
|
add_header 'Access-Control-Allow-Origin' '{{ nginx_cors_acl_origin | default("$http_origin") }}';
|
||||||
{% else %}
|
{% else %}
|
||||||
proxy_hide_header Access-Control-Allow-Origin;
|
proxy_hide_header Access-Control-Allow-Origin;
|
||||||
add_header 'Access-Control-Allow-Origin' '{{ nginx_access_control_allow_origin_src | default("*") }}';
|
add_header 'Access-Control-Allow-Origin' '{{ nginx_access_control_allow_origin_src | default("*") }}' always;
|
||||||
{% endif %}
|
{% endif %}
|
||||||
if ($request_method = OPTIONS ) {
|
if ($request_method = OPTIONS ) {
|
||||||
return 204;
|
return 204;
|
||||||
|
|
Loading…
Reference in New Issue