Download the PHP package sockam/csp-logger-bundle without Composer
On this page you can find all versions of the php package sockam/csp-logger-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download sockam/csp-logger-bundle
More information about sockam/csp-logger-bundle
Files in sockam/csp-logger-bundle
Package csp-logger-bundle
Short Description A Symfony Bundle that can collect reports from CSP
License MIT
Informations about the package csp-logger-bundle
Intro to SockamCSPLoggerBundle
The SockamCSPLoggerBundle provides a basic service for logging content security policy violations.
Features
- Saving CSP violations
- Viewing the saves CSP violations
Installation
Get the bundle
Add sockam/csp-logger-bundle
to your dependencies:
To install, run php composer.phar [update|install]
.
Add CSPLoggerBundle to your application kernel
Import the routing configuration
Add to your routing.yml
:
You can customize the prefix as you wish.
Update your database schema:
You can now use /csp/log
endpoint in your CSP headers:
You can now access the dashboard at this url: /csp/logs
To secure the CSP violations viewer, you can add the following to your security.yml
- provided your administrator role is ROLE_ADMIN
Now only users with the role ROLE_ADMIN will be able to access the CSP violations viewer at this url: /csp/logs
Screenshots
Violations viewer
All versions of csp-logger-bundle with dependencies
symfony/form Version ^2.7 || ^3.0
symfony/framework-bundle Version ^2.7 || ^3.0
symfony/security-bundle Version ^2.7 || ^3.0
symfony/twig-bundle Version ^2.7 || ^3.0
twig/twig Version ^1.28 || ^2.0
symfony/templating Version ^2.7 || ^3.0
symfony/validator Version ^2.7 || ^3.0
symfony/yaml Version ^2.7 || ^3.0