Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

content security policy error in the console #1147

Open
eatyourpeas opened this issue Jan 5, 2025 · 0 comments
Open

content security policy error in the console #1147

eatyourpeas opened this issue Jan 5, 2025 · 0 comments
Labels
refactor Refactoring and tidying work user-interface Issues which are primarily UI fixes

Comments

@eatyourpeas
Copy link
Member

This is an advisory error:

Content Security Policy 'upgrade-insecure-requests' was delivered via a <meta> element outside the document's <head>, which is disallowed. The policy has been ignored.

It occurs because the CSP should be in the head tag as a meta tag and not outside. The CSP in Epilepsy12 is in the head tag as normal, but several htmx requests return partials that extend the base.html. To fix this all the partials need to be amended to include only those parts of base.html that are needed, minus the head tag.

@eatyourpeas eatyourpeas added user-interface Issues which are primarily UI fixes refactor Refactoring and tidying work labels Jan 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactor Refactoring and tidying work user-interface Issues which are primarily UI fixes
Projects
None yet
Development

No branches or pull requests

1 participant