Skip to content

Commit e501d74

Browse files
authored
Support report-to CSP directive and Reporting-Endpoints header (#1269)
1 parent 3d15cc8 commit e501d74

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

server/embedded/src/org/labkey/embedded/LabKeyServer.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,15 +80,15 @@ public static void main(String[] args)
8080
base-uri 'self' ;
8181
frame-src 'self' ${FRAME.SOURCES} ;
8282
""";
83-
// Add upgrade_insecure_requests substitution, frame-ancestors, and e12 version for enforce CSP
83+
// Add upgrade_insecure_requests substitution, frame-ancestors, and e13 version for enforce CSP
8484
String enforceCsp = baseCsp + """
8585
${UPGRADE.INSECURE.REQUESTS}
8686
frame-ancestors 'self' ;
87-
report-uri ${context.contextPath:}/admin-contentSecurityPolicyReport.api?cspVersion=e12&${CSP.REPORT.PARAMS} ;
87+
report-uri ${context.contextPath:}/admin-contentSecurityPolicyReport.api?cspVersion=e13&${CSP.REPORT.PARAMS} ;
8888
""";
8989
// Leave out upgrade_insecure_requests and frame-ancestors directives, since they produce warnings on some browsers
9090
String reportCsp = baseCsp + """
91-
report-uri ${context.contextPath:}/admin-contentSecurityPolicyReport.api?cspVersion=r12&${CSP.REPORT.PARAMS} ;
91+
report-uri ${context.contextPath:}/admin-contentSecurityPolicyReport.api?cspVersion=r13&${CSP.REPORT.PARAMS} ;
9292
""";
9393

9494
application.setDefaultProperties(new HashMap<>()

0 commit comments

Comments
 (0)