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

Prepare for a sensible Content Security Policy #126

Open
2 of 4 tasks
mvz opened this issue Nov 5, 2023 · 0 comments
Open
2 of 4 tasks

Prepare for a sensible Content Security Policy #126

mvz opened this issue Nov 5, 2023 · 0 comments

Comments

@mvz
Copy link
Member

mvz commented Nov 5, 2023

If we want to set Content Security Policy in Publify (see https://edgeguides.rubyonrails.org/security.html#content-security-policy-header), some things need to be done:

  • Remove inline javascript attributes
  • Remove inline styles
  • Remove jQuery, since it contains code that sets inline javascript attributes
  • Replace <script> tags so it sets nonces
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