Changed iframe options

This commit is contained in:
2025-03-20 04:31:02 +01:00
parent 87ca1ccc11
commit 0611ddda11
8 changed files with 15 additions and 14 deletions

View File

@@ -1,4 +1,4 @@
add_header X-Frame-Options "SAMEORIGIN" always; # Allow iframe embedding only from the same origin
{% if landingpage_iframe_enabled | default(applications.get(application_id).get('landingpage_iframe_enabled')) | bool %}
add_header Content-Security-Policy "frame-ancestors {{primary_domain}};" always; # Restrict embedding to the specified primary domain
add_header X-Frame-Options "SAMEORIGIN" always;
add_header Content-Security-Policy "frame-ancestors 'self' {{primary_domain}};" always;
{% endif %}