diff --git a/src/app/Http/Middleware/ContentSecurityPolicy.php b/src/app/Http/Middleware/ContentSecurityPolicy.php index e0083e30..9dd09804 100644 --- a/src/app/Http/Middleware/ContentSecurityPolicy.php +++ b/src/app/Http/Middleware/ContentSecurityPolicy.php @@ -1,34 +1,39 @@ 'Content-Security-Policy', 'xfo' => 'X-Frame-Options', ]; + //Exclude horizon routes, per https://github.com/laravel/horizon/issues/576 + if ($request->is('horizon*')) { + $headers = []; + } + $next = $next($request); foreach ($headers as $opt => $header) { if ($value = \config("app.headers.{$opt}")) { $next->headers->set($header, $value); } } return $next; } }