We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1147f48 commit b129098Copy full SHA for b129098
.changeset/weak-jars-tap.md
@@ -0,0 +1,5 @@
1
+---
2
+'@module-federation/runtime': patch
3
4
+
5
+fix: window.location.origin will be "null" in iframe srcDoc
packages/runtime/src/core.ts
@@ -764,7 +764,7 @@ export class FederationHost {
764
}
765
// Set the remote entry to a complete path
766
if ('entry' in remote) {
767
- if (isBrowserEnv()) {
+ if (isBrowserEnv() && !remote.entry.startsWith('http')) {
768
remote.entry = new URL(remote.entry, window.location.origin).href;
769
770
0 commit comments