Download the PHP package paramonovav/laravel4-header-csp without Composer
On this page you can find all versions of the php package paramonovav/laravel4-header-csp. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download paramonovav/laravel4-header-csp
More information about paramonovav/laravel4-header-csp
Files in paramonovav/laravel4-header-csp
Package laravel4-header-csp
Short Description Provides support for enforcing Content Security Policy with headers in Laravel 4 responses.
License MIT
Homepage https://github.com/paramonovav/laravel4-header-csp
Informations about the package laravel4-header-csp
Response header Content Security Policy for Laravel 4
Provides support for enforcing Content Security Policy and XSS Protection with headers in Laravel 4 responses.
Note: Based on Content Security Policy, Improving Web Security with the Content Security Policy, HTTP headers.
Key Features
- Add rules for Content Security Policy (content-security-policy, x-content-security-policy, x-webkit-csp)
- Save reports of policy failures to folder if needed
- Add additional header like:
Installation
Require this package with composer:
After updating composer, add the ServiceProvider to the providers array in app/config/app.php
You need to publish the config from this package.
Usage
Apply content security policy to routes
The following will apply all default profiles to the route.
The following will apply all default profiles and a specific profile to the route.
You can include any number of specific profiles. The following will apply default, google, flickr, and my_custom profiles to the route.