Merge branch 'develop' of https://github.com/snipe/snipe-it into develop
This commit is contained in:
commit
2dcb50d28e
2 changed files with 2 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
||||||
FROM alpine:3.12
|
FROM alpine:3.13
|
||||||
# Apache + PHP
|
# Apache + PHP
|
||||||
RUN apk add --no-cache \
|
RUN apk add --no-cache \
|
||||||
apache2 \
|
apache2 \
|
||||||
|
|
|
@ -99,7 +99,7 @@ class SecurityHeaders
|
||||||
// We have to exclude debug mode here because debugbar pulls from a CDN or two
|
// We have to exclude debug mode here because debugbar pulls from a CDN or two
|
||||||
// and it will break things.
|
// 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[] = "default-src 'self'";
|
||||||
$csp_policy[] = "style-src 'self' 'unsafe-inline'";
|
$csp_policy[] = "style-src 'self' 'unsafe-inline'";
|
||||||
$csp_policy[] = "script-src 'self' 'unsafe-inline' 'unsafe-eval'";
|
$csp_policy[] = "script-src 'self' 'unsafe-inline' 'unsafe-eval'";
|
||||||
|
|
Loading…
Add table
Reference in a new issue