PHP code example of area17 / twill-security-headers
1. Go to this page and download the library: Download area17/twill-security-headers 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/ */
area17 / twill-security-headers example snippets
'unwanted-headers' => ['X-Powered-By', 'server', 'Server'],
TwillNavigation::clear();
...
TwillNavigation::addLink(
NavigationLink::make()
->forModule('TwillSecurityHeaders')
->title('Security headers')
);
bash
php artisan vendor:publish --provider="A17\TwillSecurityHeaders\ServiceProvider"
bash
php artisan migrate