Skip to content

Commit

Permalink
Add support for image-src external sources
Browse files Browse the repository at this point in the history
  • Loading branch information
labkey-adam committed Feb 20, 2025
1 parent 32152ad commit d2f1d58
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/configs/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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' ;\
Expand All @@ -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 <style> tags that we are weeding out */\
img-src 'self' data: ; /* Limit image loading locations */\
img-src 'self' data: ${IMAGE.SOURCES} ; /* Limit image loading locations */\
font-src 'self' data: ${FONT.SOURCES} ; /* Limit font source loading locations */\
script-src 'unsafe-eval' 'strict-dynamic' 'nonce-${REQUEST.SCRIPT.NONCE}' ; /* Limit scripts that are allowed to those with nonces or transitive scripts */\
base-uri 'self' ; /* Limit the base tags to only source from current server */\
Expand Down

0 comments on commit d2f1d58

Please sign in to comment.