PHP code example of paramonovav / laravel4-header-csp

1. Go to this page and download the library: Download paramonovav/laravel4-header-csp library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

paramonovav / laravel4-header-csp example snippets


php artisan config:publish paramonovav/laravel4-header-csp

Route::get('login', array('after'=>'response.secure'), function()
{
    return 'Hello, on login page !';
}));

Route::get('login', array('after'=>'response.secure:google'), function()
{
    return 'Hello, on login page !';
}));

Route::get('login', array('after'=>'response.secure:google-flickr-my_custom'), function()
{
    return 'Hello, on login page !';
}));