Added mode=block to XSSProtect header

This commit is contained in:
snipe 2017-09-28 16:28:27 -07:00
parent 915c19ebda
commit a34085f1d9

View file

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