adeira / csp
Installs: 5 450
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 1
Open Issues: 0
Requires
- adeira/code-quality: ^1.0
- nette/di: ^2.3
Requires (Dev)
- nette/php-generator: ^2.3
- nette/tester: dev-master
- nette/utils: ^2.4
This package is not auto-updated.
Last update: 2019-02-20 19:03:47 UTC
README
This package is deprecated because CSP support has been added to the nette/http package in version 2.4.4...
Nette/http package does have very similar syntax and additionally it support nonces. Here is the future syntax:
http: csp: default-src: "'self' https://example.com" upgrade-insecure-requests: script-src: 'nonce' style-src: - self - https://example.com
Yeah that's right - you don't have to register special extension, because it's already in Nette Framework. Please read more about nonce support in Nette Framework forum.