Added 'always' directive as default to the 'Access-Control-Allow-Origin', see #28488#note-24 #3

Merged
adellam merged 1 commits from new_cors_configs into master 2024-12-18 12:27:05 +01:00
1 changed files with 1 additions and 1 deletions
Showing only changes of commit 7e4bb532be - Show all commits

View File

@ -53,7 +53,7 @@ proxy_hide_header Access-Control-Allow-Origin;
add_header 'Access-Control-Allow-Origin' '{{ nginx_cors_acl_origin | default("$http_origin") }}';
{% else %}
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 %}
if ($request_method = OPTIONS ) {
return 204;