Skip to content

Error in chromium browsers - TrustedHTML #6759

Discussion options

You must be logged in to vote

Solution:

add_header X-XSS-Protection          "1; mode=block" always;
add_header X-Content-Type-Options    "nosniff" always;
add_header Referrer-Policy           "no-referrer-when-downgrade" always;
add_header Content-Security-Policy   "default-src 'self' http: https: ws: wss: data: blob: 'unsafe-inline'; frame-ancestors 'self';" always;
add_header Permissions-Policy        "interest-cohort=()" always;
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains" always;

Chrome needs these content security policy headers to work, added them in my Nginx and now it all works :)

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@JocularMarrow
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by JocularMarrow
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants