Fix the xss syntax.
This commit is contained in:
parent
4ec5bddf14
commit
b110431218
|
@ -45,13 +45,13 @@ server {
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if nginx_set_xss_protection %}
|
{% if nginx_set_xss_protection %}
|
||||||
add_header X-XSS-Protection "1; mode=block";
|
add_header X-XSS-Protection "1; mode=block;";
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if nginx_set_frame_origin %}
|
{% if nginx_set_frame_origin %}
|
||||||
add_header X-Frame-Options "{{ nginx_x_frame_options }}";
|
add_header X-Frame-Options "{{ nginx_x_frame_options }}";
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if nginx_set_content_security_options %}
|
{% if nginx_set_content_security_options %}
|
||||||
add_header Content-Security-Policy "frame-ancestors {% for l in nginx_content_security_acl %} {{ l }}{% endfor %};";
|
add_header Content-Security-Policy "frame-ancestors{% for l in nginx_content_security_acl %} {{ l }}{% endfor %};";
|
||||||
{% endif %}
|
{% endif %}
|
||||||
server_tokens {{ item.server_tokens | default('off') }};
|
server_tokens {{ item.server_tokens | default('off') }};
|
||||||
|
|
||||||
|
@ -259,13 +259,13 @@ server {
|
||||||
include /etc/nginx/snippets/nginx-server-ssl.conf;
|
include /etc/nginx/snippets/nginx-server-ssl.conf;
|
||||||
|
|
||||||
{% if nginx_set_xss_protection %}
|
{% if nginx_set_xss_protection %}
|
||||||
add_header X-XSS-Protection "1; mode=block";
|
add_header X-XSS-Protection "1; mode=block;";
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if nginx_set_frame_origin %}
|
{% if nginx_set_frame_origin %}
|
||||||
add_header X-Frame-Options "{{ nginx_x_frame_options }}";
|
add_header X-Frame-Options "{{ nginx_x_frame_options }}";
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if nginx_set_content_security_options %}
|
{% if nginx_set_content_security_options %}
|
||||||
add_header Content-Security-Policy "frame-ancestors {% for l in nginx_content_security_acl %} {{ l }}{% endfor %};";
|
add_header Content-Security-Policy "frame-ancestors{% for l in nginx_content_security_acl %} {{ l }}{% endfor %};";
|
||||||
{% endif %}
|
{% endif %}
|
||||||
server_tokens {{ item.server_tokens | default('off') }};
|
server_tokens {{ item.server_tokens | default('off') }};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue