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

[Feature request] Per-page CSP configuration #206

Open
stof opened this issue Jun 7, 2019 · 2 comments · May be fixed by #241
Open

[Feature request] Per-page CSP configuration #206

stof opened this issue Jun 7, 2019 · 2 comments · May be fixed by #241

Comments

@stof
Copy link
Contributor

stof commented Jun 7, 2019

The clickjacking protection supports applying a different configuration for different paths. It would be great if CSP could do it as well.

See https://github.blog/2016-04-12-githubs-csp-journey/#connect-src which describes a use case that Github has for this (which is also what gave me the idea to request it here. My own CSP journey is not yet at the point where I would need it, but it might come).

@kiler129
Copy link

kiler129 commented Jul 3, 2019

We have another example: Sonata Admin uses inline JS. Enabling this for the whole site would be really irresponsible.

@alxndrbauer
Copy link

Another example would be allowing data: in img-src and unsafe-inline in style-src for googlemaps api.
I dont need the api on every page

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

Successfully merging a pull request may close this issue.

3 participants