Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions api/src/org/labkey/filters/ContentSecurityPolicyFilter.java
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,10 @@ public String getHeaderName()
static
{
// ReactJS hot reload uses localhost port 3001. If in dev mode, allow the browser to access that port for fonts
// and connections.
// and connections. Also allow webpack: protocol for source map loading by some external packages.
if (AppProps.getInstance().isDevMode())
{
registerAllowedSources("reactjs.hot.reload", Directive.Connection, "localhost:3001 ws://localhost:3001");
registerAllowedSources("reactjs.hot.reload", Directive.Connection, "localhost:3001 ws://localhost:3001 webpack:");
registerAllowedSources("reactjs.hot.reload", Directive.Font, "localhost:3001");
}
}
Expand Down