NF-022: Request origin is not an allowed host
A request came from a host that is not on the remote's allowed list. Remotes only serve islands to hosts they know.
Why This Error Occurred
A request came from a host that is not on the remote's allowed list. Remotes only serve islands to hosts they know.
Possible Ways to Fix It
-
Add the host's origin to the remote's
hostsoption. Each entry must equal theOriginheader a browser sends: lowercase, no path, no trailing slash.// vite.config.ts nextFederationIslands({ hosts: ['https://app.example.com'] }) -
Check that a proxy is not changing the
Originheader.
Useful Links
NF-021: Unknown island
A host asked a remote for an island it does not expose. The name is misspelled, the island was removed or renamed, or the remote build in use predates it....
NF-023: Remote build has been retired
The envelope refers to a remote build that has been removed. Builds are kept for a retention window and then retired; a page cached longer than that...