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

Add basic CSP functionality #74

Closed
empijei opened this issue Aug 14, 2020 · 1 comment · Fixed by #93
Closed

Add basic CSP functionality #74

empijei opened this issue Aug 14, 2020 · 1 comment · Fixed by #93
Assignees
Labels
enhancement New feature or request plugin v0.1

Comments

@empijei
Copy link
Contributor

empijei commented Aug 14, 2020

The plugin should implement the following features:

  1. Have a configurable setup
  • Enforcement or Report-Only
  • Enable strict-dynamic (defaults to disabled)
  • Enable unsafe-eval (defaults to disabled)
  • Set a reporting endpoint or group (defaults to nothing for the time being, it will be a handler that the plugin installs later)
  • Set base-src (defaults to none)
  • Add a set of hashes (defaults to empty)
  1. Set a Content-Security-Policy header
    The policy should be a strict CSP and nonces should be generated in the Before phase. The plugin will be responsible of putting the nonce in the request context for later retrieval.
@empijei empijei changed the title feature request: plugins: add CSP feature request: plugins: add basic CSP functionality Aug 14, 2020
@kele kele added enhancement New feature or request plugin labels Aug 14, 2020
@kele kele changed the title feature request: plugins: add basic CSP functionality Add basic CSP functionality Aug 14, 2020
@mattiasgrenfeldt mattiasgrenfeldt self-assigned this Aug 14, 2020
@mattiasgrenfeldt
Copy link
Contributor

I'll start working on this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request plugin v0.1
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants