Skip to content

Commit 53b2e15

Browse files
committed
Add ContentSecurityPolicyFilter.registerAllowedSources()
1 parent cb8a8ac commit 53b2e15

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

jbrowse/src/org/labkey/jbrowse/JBrowseModule.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
import org.labkey.api.module.ModuleContext;
2727
import org.labkey.api.pipeline.PipelineService;
2828
import org.labkey.api.query.DetailsURL;
29+
import org.labkey.api.security.Directive;
2930
import org.labkey.api.security.permissions.AdminOperationsPermission;
3031
import org.labkey.api.sequenceanalysis.SequenceAnalysisService;
3132
import org.labkey.api.sequenceanalysis.pipeline.SequencePipelineService;
@@ -114,7 +115,8 @@ public void doStartupAfterSpringConfig(ModuleContext moduleContext)
114115
JBrowseService.get().registerGroupsProvider(new JBrowseLuceneSearch.TestJBrowseGroupProvider());
115116

116117
// These are all part of the JBrowse demo data:
117-
ContentSecurityPolicyFilter.registerAllowedConnectionSource(this.getClass().getName(), "https://jbrowse.org", "https://s3.amazonaws.com", "https://ftp.ncbi.nlm.nih.gov", "https://www.gstatic.com");
118+
ContentSecurityPolicyFilter.registerAllowedSources(Directive.Connection, this.getClass().getName(), "https://jbrowse.org", "https://s3.amazonaws.com", "https://ftp.ncbi.nlm.nih.gov");
119+
ContentSecurityPolicyFilter.registerAllowedSources(Directive.Style, this.getClass().getName(), "https://www.gstatic.com");
118120

119121
ContextListener.addShutdownListener(new JBrowseLuceneSearch.ShutdownHandler());
120122
}

0 commit comments

Comments
 (0)