Directive proxy_hide_header Access-Control-Allow-Origin; only when cors is global.
This commit is contained in:
parent
92c84d93c2
commit
99f5a5836f
|
@ -123,8 +123,8 @@ server {
|
|||
{% endif %}
|
||||
|
||||
{% if nginx_cors_enabled %}
|
||||
proxy_hide_header Access-Control-Allow-Origin;
|
||||
{% if nginx_cors_global %}
|
||||
proxy_hide_header Access-Control-Allow-Origin;
|
||||
include /etc/nginx/snippets/nginx-cors.conf;
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
@ -307,8 +307,8 @@ server {
|
|||
server_tokens {{ item.server_tokens | default('off') }};
|
||||
|
||||
{% if nginx_cors_enabled %}
|
||||
proxy_hide_header Access-Control-Allow-Origin;
|
||||
{% if nginx_cors_global %}
|
||||
proxy_hide_header Access-Control-Allow-Origin;
|
||||
include /etc/nginx/snippets/nginx-cors.conf;
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
|
Loading…
Reference in New Issue