From 778065e3ad4c9e6d0e11d3994362187bb9d48859 Mon Sep 17 00:00:00 2001 From: Adam Rauch Date: Wed, 19 Mar 2025 12:48:14 -0700 Subject: [PATCH] Correctly register saved hosts with the ContentSecurityPolicyFilter on server start --- .../org/labkey/core/security/AllowedExternalResourceHosts.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/org/labkey/core/security/AllowedExternalResourceHosts.java b/core/src/org/labkey/core/security/AllowedExternalResourceHosts.java index 39fcb8fe768..a093eb83763 100644 --- a/core/src/org/labkey/core/security/AllowedExternalResourceHosts.java +++ b/core/src/org/labkey/core/security/AllowedExternalResourceHosts.java @@ -92,7 +92,7 @@ public static void registerHosts() return; } - list.forEach(sub -> ContentSecurityPolicyFilter.registerAllowedSources(sub.directive(), sub.host())); + list.forEach(sub -> ContentSecurityPolicyFilter.registerAllowedSources(sub.directive(), "External Sources", sub.host())); LOG.debug("Registered [{}] as allowed external sources", list); }