mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-25 05:34:06 -08:00
Added mode=block to XSSProtect header
This commit is contained in:
parent
915c19ebda
commit
a34085f1d9
|
@ -14,8 +14,9 @@ class XssProtectHeader
|
|||
*/
|
||||
public function handle($request, Closure $next)
|
||||
{
|
||||
$mode = '1; mode=block';
|
||||
$response = $next($request);
|
||||
$response->headers->set('X-XSS-Protection', '1');
|
||||
$response->headers->set('X-XSS-Protection', $mode);
|
||||
return $response;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue