Skip to content

Commit 6eeb57c

Browse files
committed
Modify ContentSecurityPolicyFilter
1 parent bc4cf2d commit 6eeb57c

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

mGAP/src/org/labkey/mgap/mGAPModule.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ public void doStartupAfterSpringConfig(ModuleContext moduleContext)
108108

109109
SystemMaintenance.addTask(new mGapMaintenanceTask());
110110

111-
ContentSecurityPolicyFilter.registerAllowedSources(Directive.Connection, this.getClass().getName(), "https://code.jquery.com");
111+
ContentSecurityPolicyFilter.registerAllowedSources(Directive.Connection, this.getClass().getName(), "https://code.jquery.com", "https://*.fontawesome.com");
112112
ContentSecurityPolicyFilter.registerAllowedSources(Directive.Style, this.getClass().getName(), "https://code.jquery.com", "https://www.gstatic.com");
113113
ContentSecurityPolicyFilter.registerAllowedSources(Directive.Font, this.getClass().getName(), "https://*.fontawesome.com");
114114

mcc/src/org/labkey/mcc/MccModule.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ protected void doStartupAfterSpringConfig(ModuleContext moduleContext)
140140

141141
ContentSecurityPolicyFilter.registerAllowedSources(Directive.Connection, this.getClass().getName(), "https://cdn.datatables.net");
142142
ContentSecurityPolicyFilter.registerAllowedSources(Directive.Style, this.getClass().getName(), "https://cdn.datatables.net");
143+
ContentSecurityPolicyFilter.registerAllowedSources(Directive.Image, this.getClass().getName(), "https://cdn.datatables.net");
143144
}
144145

145146
@Override

0 commit comments

Comments
 (0)