From 351de11f7311d34bb722087e27dcede64b51024e Mon Sep 17 00:00:00 2001 From: Adam Rauch Date: Mon, 24 Feb 2025 10:59:56 -0800 Subject: [PATCH 1/2] Add cspVersion parameter to CSPs --- server/configs/application.properties | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/server/configs/application.properties b/server/configs/application.properties index 27a8d91a50..70230367a1 100644 --- a/server/configs/application.properties +++ b/server/configs/application.properties @@ -138,23 +138,23 @@ management.server.port=@@shutdownPort@@ #useLocalBuild# base-uri 'self' ; \ #useLocalBuild# frame-ancestors 'self' ; \ #useLocalBuild# frame-src 'self' ${FRAME.SOURCES} ; \ -#useLocalBuild# report-uri /admin-contentsecuritypolicyreport.api?${CSP.REPORT.PARAMS} ; +#useLocalBuild# report-uri /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 Version: r11 csp.report=\ - default-src 'self' ; /* Limit the default to only the current server */\ - 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