added various tests for playwright

This commit is contained in:
Codex Agent
2025-12-19 21:56:39 +01:00
parent 778ffc8bb9
commit 18297aa3f1
23 changed files with 818 additions and 109 deletions

View File

@@ -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);