From d2f1d58f955ae9823ef69858ae8ea0bacf9a6b73 Mon Sep 17 00:00:00 2001 From: Adam Rauch Date: Thu, 20 Feb 2025 09:59:10 -0800 Subject: [PATCH 1/3] Add support for image-src external sources --- server/configs/application.properties | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/configs/application.properties b/server/configs/application.properties index 527b1ce49a..ccfc3ca248 100644 --- a/server/configs/application.properties +++ b/server/configs/application.properties @@ -131,7 +131,7 @@ management.server.port=@@shutdownPort@@ #useLocalBuild# connect-src 'self' ${CONNECTION.SOURCES} ;\ #useLocalBuild# object-src 'none' ;\ #useLocalBuild# style-src 'self' https: 'unsafe-inline' ${STYLE.SOURCES} ;\ -#useLocalBuild# img-src 'self' https: data: ;\ +#useLocalBuild# img-src 'self' https: data: ${IMAGE.SOURCES} ;\ #useLocalBuild# font-src 'self' data: ${FONT.SOURCES} ;\ #useLocalBuild# script-src 'self' 'unsafe-eval' 'strict-dynamic' 'nonce-${REQUEST.SCRIPT.NONCE}' ;\ #useLocalBuild# base-uri 'self' ;\ @@ -146,7 +146,7 @@ csp.report=\ connect-src 'self' ${CONNECTION.SOURCES} ; /* For security purposes limit allowed connection sources, can be substituted and appended via the LabKey Admin UI */\ object-src 'none' ; /* These tags are not currently used by LKS */\ style-src 'self' 'unsafe-inline' ${STYLE.SOURCES} ; /* We currently have a few inline