Skip to content
This repository has been archived by the owner on Nov 23, 2021. It is now read-only.

Document how to configure Content-Security-Policy header #63

Open
carlalexander opened this issue May 14, 2016 · 1 comment
Open

Document how to configure Content-Security-Policy header #63

carlalexander opened this issue May 14, 2016 · 1 comment

Comments

@carlalexander
Copy link
Owner

Working on adding support for security headers in debops.nginx. But even with the changes, the Content-Security-Policy header is hard to configure right and is turned off by default.

The security cookbook should be updated to explain how to configure the Content-Security-Policy header. Explain how to setup reporting at to see if a policy works. Then how to use tools like securityheaders.io and report-uri.io to craft a good policy for your site.

@carlalexander
Copy link
Owner Author

Just added support for the Content-Security-Policy header. I made some changes to the default header compared to the debops.nginx role. The important difference with WordPress is that you need to use 'unsafe-eval' and 'unsafe-inline' since themes and plugins output styles and scripts inline.

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

No branches or pull requests

1 participant