Skip to content

Conversation

@cnathe
Copy link
Contributor

@cnathe cnathe commented Feb 19, 2025

Rationale

The related PR added localhost to the allowed connections in dev mode to support the client side application dev for hot module reloading. We need to also include websocket "ws:" in that connect-src.

Screenshot 2025-02-18 at 11 27 04 AM

Related Pull Requests

Changes

  • Include websocket "ws:" for reactjs.hot.reload in allowed connections for dev mode

// ReactJS hot reload uses localhost port 3001. If in dev mode, allow browser to access that port.
if (AppProps.getInstance().isDevMode())
registerAllowedConnectionSource("reactjs.hot.reload", "localhost:3001");
registerAllowedConnectionSource("reactjs.hot.reload", "localhost:3001 ws:");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this PR can be closed in favor of #6345 and we make the same change there.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I was waiting for the other one to be merged. Closing this now.

@cnathe cnathe closed this Feb 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants