mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-24 04:03:34 -08:00
For #3998 - Disable CSP if debug=true
To avoid all the nonce hell from debugbar
This commit is contained in:
parent
05a8ba9a8e
commit
efd71f8bfe
|
@ -14,7 +14,7 @@ class ContentSecurityPolicyHeader
|
|||
*/
|
||||
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);
|
||||
return $response;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue