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 compatibility #732

Open
Zankaria opened this issue Apr 29, 2024 · 2 comments
Open

Content Security Policy compatibility #732

Zankaria opened this issue Apr 29, 2024 · 2 comments

Comments

@Zankaria
Copy link

Zankaria commented Apr 29, 2024

https://infosec.mozilla.org/guidelines/web_security#content-security-policy

CSP allows to block XSS attacks by preventing the execution of unauthorized javascript or css inside a html page.
While vichan should already be compatible with CSP's basic form, it's not currently possible to set the policy to it's strictest form as vichan's includes inline javascript and stylesheets.

@Zankaria
Copy link
Author

Zankaria commented Aug 6, 2024

Maybe we can use href to still tell main.js which page we're in?
Or maybe a query parameter in the script tag? Can those even be read?

@Zankaria
Copy link
Author

Zankaria commented Aug 6, 2024

Or just this: https://stackoverflow.com/a/15069289/14855239

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant