Skip to content

Commit 4b7d600

Browse files
authored
Add registerAllowedConnectionSource to JBrowse and mGAP (#280) (#281)
* Add registerAllowedConnectionSource to JBrowse and mGAP (#280) * Update registerAllowedConnectionSource URLs
1 parent 5799aee commit 4b7d600

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
import org.labkey.api.util.SystemMaintenance;
3535
import org.labkey.api.view.WebPartFactory;
3636
import org.labkey.api.webdav.WebdavService;
37+
import org.labkey.filters.ContentSecurityPolicyFilter;
3738
import org.labkey.jbrowse.button.AddLibraryButton;
3839
import org.labkey.jbrowse.button.AddTrackButton;
3940
import org.labkey.jbrowse.button.ModifyTrackConfigButton;
@@ -110,6 +111,9 @@ public void doStartupAfterSpringConfig(ModuleContext moduleContext)
110111

111112
JBrowseService.get().registerFieldCustomizer(new JBrowseLuceneSearch.DefaultJBrowseFieldCustomizer());
112113
JBrowseService.get().registerGroupsProvider(new JBrowseLuceneSearch.TestJBrowseGroupProvider());
114+
115+
// These are all part of the JBrowse demo data:
116+
ContentSecurityPolicyFilter.registerAllowedConnectionSource(this.getClass().getName(), "https://jbrowse.org", "https://s3.amazonaws.com", "https://ftp.ncbi.nlm.nih.gov/pub/clinvar");
113117
}
114118

115119
public static void registerPipelineSteps()

0 commit comments

Comments
 (0)