mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-26 06:04:08 -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)
|
public function handle($request, Closure $next)
|
||||||
{
|
{
|
||||||
|
$mode = '1; mode=block';
|
||||||
$response = $next($request);
|
$response = $next($request);
|
||||||
$response->headers->set('X-XSS-Protection', '1');
|
$response->headers->set('X-XSS-Protection', $mode);
|
||||||
return $response;
|
return $response;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue