Skip to content

fix: use protocol relative fallback origin#687

Merged
gioboa merged 2 commits intomodule-federation:mainfrom
simonihmig:fallback-origin
May 4, 2026
Merged

fix: use protocol relative fallback origin#687
gioboa merged 2 commits intomodule-federation:mainfrom
simonihmig:fallback-origin

Conversation

@simonihmig
Copy link
Copy Markdown
Contributor

In our setup, we use ignoreOrigin and also have vite configured to run on TLS. That used to work, prior to #638, but since then it had a hardcoded http:// fallback origin, so the remoteEntry.js request using http would fail to get served by vite listening on https. This change is making use of a protocol relative URL ( //host), as it seems to have been before.

Comment thread src/plugins/__tests__/pluginProxyRemoteEntry.test.ts
@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new Bot commented May 4, 2026

Open in StackBlitz

npm i https://pkg.pr.new/@module-federation/vite@687

commit: 5e14762

Comment thread src/plugins/__tests__/pluginProxyRemoteEntry.test.ts
Comment thread src/plugins/pluginProxyRemoteEntry.ts
Copy link
Copy Markdown
Collaborator

@gioboa gioboa left a comment

Choose a reason for hiding this comment

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

Tests With Different Frameworks

Image

Copy link
Copy Markdown
Collaborator

@gioboa gioboa left a comment

Choose a reason for hiding this comment

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

Thanks @simonihmig for your amazing help 👏

@gioboa gioboa merged commit 3029397 into module-federation:main May 4, 2026
19 checks passed
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.

2 participants