Skip to content

Commit

Permalink
Add ${CSP.REPORT.PARAMS} to sample CSP report-uri directives
Browse files Browse the repository at this point in the history
  • Loading branch information
labkey-tchad committed Jan 29, 2024
1 parent 19b240a commit c321601
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions server/configs/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ spring.main.banner-mode=off
# base-uri 'self' ;\
# upgrade-insecure-requests ;\
# frame-ancestors 'self' ;\
# report-uri https://www.labkey.org/admin-contentsecuritypolicyreport.api ;
# report-uri https://www.labkey.org/admin-contentsecuritypolicyreport.api?${CSP.REPORT.PARAMS} ;

# example usage 2 - less strict but enforces directives, (NOTE: unsafe-inline is still required for many modules)

Expand All @@ -106,7 +106,7 @@ spring.main.banner-mode=off
# base-uri 'self' ;\
# upgrade-insecure-requests ;\
# frame-ancestors 'self' ;\
# report-uri https://www.labkey.org/admin-contentsecuritypolicyreport.api ;
# report-uri https://www.labkey.org/admin-contentsecuritypolicyreport.api?${CSP.REPORT.PARAMS} ;

# Default CSP for TeamCity and dev deployments
#setupTask#csp.report=\
Expand All @@ -119,7 +119,7 @@ spring.main.banner-mode=off
#setupTask# script-src 'unsafe-eval' 'strict-dynamic' 'nonce-${REQUEST.SCRIPT.NONCE}' ;\
#setupTask# base-uri 'self' ;\
#setupTask# frame-ancestors 'self' ;\
#setupTask# report-uri /admin-contentsecuritypolicyreport.api ;
#setupTask# report-uri /admin-contentsecuritypolicyreport.api?${CSP.REPORT.PARAMS} ;

# Use a non-temp directory for tomcat
#setupTask#server.tomcat.basedir=@@pathToServer@@/build/deploy/embedded
Expand Down

0 comments on commit c321601

Please sign in to comment.