diff --git a/templates/nginx-virthost.j2 b/templates/nginx-virthost.j2 index 68ebbf1..503641f 100644 --- a/templates/nginx-virthost.j2 +++ b/templates/nginx-virthost.j2 @@ -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 %}