For #3998 - Disable CSP if debug=true
To avoid all the nonce hell from debugbar
This commit is contained in:
parent
05a8ba9a8e
commit
efd71f8bfe
1 changed files with 1 additions and 1 deletions
|
@ -14,7 +14,7 @@ class ContentSecurityPolicyHeader
|
||||||
*/
|
*/
|
||||||
public function handle($request, Closure $next)
|
public function handle($request, Closure $next)
|
||||||
{
|
{
|
||||||
if (config('app.disable_csp')=='true') {
|
if ((config('app.debug')=='true') || (config('app.disable_csp')=='true')) {
|
||||||
$response = $next($request);
|
$response = $next($request);
|
||||||
return $response;
|
return $response;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue