element-web: Use a wider CSP default

X-Frame-Options should be the source of truth for this particular policy
decision, but it seems some browsers aren't collating the two correctly,
so a slightly wider CSP policy allows those to behave reasonably.
This commit is contained in:
Alexander Olofsson 2023-09-25 15:26:00 +02:00
parent cc5584e1d8
commit c52f424e79
No known key found for this signature in database
GPG key ID: D439C9470CB04C73
2 changed files with 2 additions and 2 deletions

View file

@ -10,7 +10,7 @@ icon: https://element.io/images/logo-mark-primary.svg
appVersion: 1.11.42
type: application
version: 1.2.13
version: 1.3.0
maintainers:
- name: Alexander Olofsson

View file

@ -34,7 +34,7 @@ nginxConfig: |-
add_header X-Frame-Options SAMEORIGIN;
add_header X-Content-Type-Options nosniff;
add_header X-XSS-Protection "1; mode=block";
add_header Content-Security-Policy "frame-ancestors 'none'";
add_header Content-Security-Policy "frame-ancestors 'self'";
## Configuration for mounting additional volumes into the application container.
##