- Please refer to the changelog of version 8.0.0 to make corresponding adjustments based on your existing settings.
- The following new headers are added, you can find it here and copy to your config file.
Cross-Origin-Embedder-PolicyCross-Origin-Opener-PolicyCross-Origin-Resource-Policy
feature-policywas replaced withpermissions-policy, make sure you addpermissions-policyconfig to the config file, you can find it here.
- Add
use-permissions-policy-headerconfig key forfeature-policy, you can find it here.
X-Power-Byheader renamed toX-Powered-By.
- Lumen user need to add SecureHeadersMiddleware manually.
- HSTS preload is disabled by default now, if your HSTS config does not contain
preloadkey and you want to preserve previous behavior, addpreloadto HSTS section and set totrue. - Update
cspconfig structure from config file.
- The following new headers are added, you can find it here and copy to your config file.
X-Power-By
- HSTS
preloadfield can be disabled now, you can find it here and copy to your config file. display-captureanddocument-domainare added to Feature-Policy, you can find it here and here.
- The following new headers are added, you can find it here and copy to your config file.
Feature-Policy
- The following new headers are added, you can find it here and here and copy to your config file.
Clear-Site-DataServer
- The following new headers are added, you can find it here and copy to your config file.
Expect-CT
- HPKP
hashesfield only supports sha256 algorithm, change other algorithms to sha256. - CSP
https-transform-on-https-connectionswas removed, dont forget to use the explicit protocol. - CSP
child-srcdirective was removed, useframe-srcorworker-srcdirective instead. - CSP
img-srcdirectivedatafield was removed, useschemesfield instead. - CSP directive
hashesfield has new format, you can find it here.
- If you are a Lumen user, change
$app->register(Bepsvpt\SecureHeaders\LumenServiceProvider::class);to$app->register(Bepsvpt\SecureHeaders\SecureHeadersServiceProvider::class);inbootstrap/app.php - Because of dependency changing, please check your Content-Security-Policy(CSP) header is correct after upgrade.
- Rename
config/security-header.phptoconfig/secure-headers.php - Change provider from
Bepsvpt\LaravelSecurityHeader\SecurityHeaderServiceProvider::class,toBepsvpt\SecureHeaders\SecureHeadersServiceProvider::class,inconfig/app.php - Change middleware from
\Bepsvpt\LaravelSecurityHeader\SecurityHeaderMiddleware::class,to\Bepsvpt\SecureHeaders\SecureHeadersMiddleware::class,inapp/Http/Kernel.php
- The following new headers are added, you can find it here and copy to your config file.
X-Download-OptionsX-Permitted-Cross-Domain-PoliciesReferrer-Policy
- You need to republish the config file and set up according to your need.