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 %}
|
{% endif %}
|
||||||
|
|
||||||
{% if nginx_cors_enabled %}
|
{% if nginx_cors_enabled %}
|
||||||
proxy_hide_header Access-Control-Allow-Origin;
|
|
||||||
{% if nginx_cors_global %}
|
{% if nginx_cors_global %}
|
||||||
|
proxy_hide_header Access-Control-Allow-Origin;
|
||||||
include /etc/nginx/snippets/nginx-cors.conf;
|
include /etc/nginx/snippets/nginx-cors.conf;
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
@ -307,8 +307,8 @@ server {
|
||||||
server_tokens {{ item.server_tokens | default('off') }};
|
server_tokens {{ item.server_tokens | default('off') }};
|
||||||
|
|
||||||
{% if nginx_cors_enabled %}
|
{% if nginx_cors_enabled %}
|
||||||
proxy_hide_header Access-Control-Allow-Origin;
|
|
||||||
{% if nginx_cors_global %}
|
{% if nginx_cors_global %}
|
||||||
|
proxy_hide_header Access-Control-Allow-Origin;
|
||||||
include /etc/nginx/snippets/nginx-cors.conf;
|
include /etc/nginx/snippets/nginx-cors.conf;
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
Loading…
Reference in New Issue