Skip to content
Snippets Groups Projects
Commit f3a82da0 authored by Hinrikus Wolf's avatar Hinrikus Wolf
Browse files

fix csp for frame-ancestor

parent da328030
No related branches found
No related tags found
No related merge requests found
......@@ -51,7 +51,7 @@
add_header X-Frame-Options "DENY" {{always}};
{% elif server.csp is defined %}
{% if 'frame-ancestors' in server.csp %}
{% if server.csp['frame-ancestors'] == 'self' %}
{% if server.csp['frame-ancestors'] == "'self'" %}
add_header X-Frame-Options "SAMEORIGIN" {{always}};
{% else %}
add_header X-Frame-Options "DENY" {{always}};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment