From 0c1745597678bb11e4ae10c3e549ff890caeb82d Mon Sep 17 00:00:00 2001 From: Will Mooreston Date: Fri, 16 May 2025 09:35:59 -0700 Subject: [PATCH 1/4] remove csp from app props so default is used --- application.properties | 31 ------------------------------- 1 file changed, 31 deletions(-) diff --git a/application.properties b/application.properties index 9eabdce..a8b5125 100644 --- a/application.properties +++ b/application.properties @@ -163,36 +163,5 @@ server.tomcat.max-threads=50 server.servlet.session.timeout=60m context.workDirLocation=/work/Tomcat/localhost -## START OF CSP ENFORCE BLOCK (DO NOT CHANGE THIS TEXT) -csp.enforce=\ - default-src 'self' https: ; \ - connect-src 'self' ${CONNECTION.SOURCES} ; \ - object-src 'none' ; \ - style-src 'self' https: 'unsafe-inline' ${STYLE.SOURCES} ; \ - img-src 'self' https: data: ${IMAGE.SOURCES} ; \ - font-src 'self' data: ${FONT.SOURCES} ; \ - script-src 'self' 'unsafe-eval' 'strict-dynamic' 'nonce-${REQUEST.SCRIPT.NONCE}' ; \ - base-uri 'self' ; \ - upgrade-insecure-requests ;\ - frame-ancestors 'self' ; \ - frame-src 'self' ${FRAME.SOURCES} ; \ - report-uri https://www.labkey.org/admin-contentSecurityPolicyReport.api?cspVersion=e10&${CSP.REPORT.PARAMS} ; -## END OF CSP ENFORCE BLOCK (DO NOT CHANGE THIS TEXT) - -## START OF CSP REPORT BLOCK (DO NOT CHANGE THIS TEXT) -csp.report=\ - default-src 'self' ; /* Limit the default to only the current server */\ - connect-src 'self' ${CONNECTION.SOURCES} ; /* Limit allowed connection sources */\ - object-src 'none' ; /* These tags are not currently used by LKS */\ - style-src 'self' 'unsafe-inline' ${STYLE.SOURCES} ; /* We currently have a few inline