Fix the xss syntax.

This commit is contained in:
Andrea Dell'Amico 2021-07-28 15:11:26 +02:00
parent 4ec5bddf14
commit b110431218
Signed by: adellam
GPG Key ID: 147ABE6CEB9E20FF
1 changed files with 4 additions and 4 deletions

View File

@ -45,7 +45,7 @@ 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 }}";
@ -259,7 +259,7 @@ 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 }}";