From 8c2e6f37ca616943bfdecbae182769e0d9c5abb1 Mon Sep 17 00:00:00 2001 From: labkey-adam <5107383+labkey-adam@users.noreply.github.com> Date: Wed, 14 May 2025 20:17:05 +0000 Subject: [PATCH] update CSP to match commit a7f460f65e74266ecd6b3ab2ee47eda2330a146b --- application.properties | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/application.properties b/application.properties index 9eabdce..69ccdc2 100644 --- a/application.properties +++ b/application.properties @@ -165,18 +165,19 @@ 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' ; \ + 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