added various tests for playwright
This commit is contained in:
@@ -26,7 +26,9 @@ class ResponseSecurityHeaders
|
||||
}
|
||||
}
|
||||
|
||||
if ($request->isSecure() && ! app()->environment(['local', 'testing'])) {
|
||||
$forceHsts = (bool) config('security_headers.force_hsts', false);
|
||||
|
||||
if ($forceHsts || ($request->isSecure() && ! app()->environment(['local', 'testing']))) {
|
||||
$hsts = 'max-age=31536000; includeSubDomains';
|
||||
if (! $response->headers->has('Strict-Transport-Security')) {
|
||||
$response->headers->set('Strict-Transport-Security', $hsts);
|
||||
|
||||
Reference in New Issue
Block a user