Merge branch 'develop' of https://github.com/snipe/snipe-it into develop

This commit is contained in:
snipe 2021-05-07 16:36:12 -07:00
commit 2dcb50d28e
2 changed files with 2 additions and 2 deletions

View file

@ -1,4 +1,4 @@
FROM alpine:3.12
FROM alpine:3.13
# Apache + PHP
RUN apk add --no-cache \
apache2 \

View file

@ -99,7 +99,7 @@ class SecurityHeaders
// We have to exclude debug mode here because debugbar pulls from a CDN or two
// and it will break things.
if ((config('app.debug')!='true') || (config('app.enable_csp')=='true')) {
if ((config('app.debug')!='true') && (config('app.enable_csp')=='true')) {
$csp_policy[] = "default-src 'self'";
$csp_policy[] = "style-src 'self' 'unsafe-inline'";
$csp_policy[] = "script-src 'self' 'unsafe-inline' 'unsafe-eval'";