Skip to content

pganster/module-federation-manifest-different-remotes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Module Federation Manifest from other Remote

Description of this issue can be found here.

Reproduction

  1. Add the following lines to the /etc/hosts on your machine:
127.0.0.1 producer.test
127.0.0.1 consumer.test
  1. Call yarn in consumer/ and producer/
  2. Call yarn dev in consumer/ and producer/
  3. Open consumer.test:2000 in your browser

Expected Behavior

In the Devtools console, "hello from producer" is logged.

Actual Behavior

The request to the mf-manifest.json fails caused by a CORS error.

Further notes

Additional Problem, but not showcased in this repo: If the 3rd party system is behind an authentication, e.g. token stored in cookie, and the user is already authenticated for this system, the request for the mf-manifest.json is missing the cookies of that domain.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published