originjs / vite-plugin-federation

Module Federation for vite & rollup
Other
2.31k stars 238 forks source link

Enable CORS by including credentials when fetching Remotes on other Domains #589

Open pganster opened 6 months ago

pganster commented 6 months ago

Is your feature request related to a problem? Please describe.

Currently, it is impossible to fetch a remoteEntry.js from a remote that is hosted on a different authenticated domain than the host as the Cookie of the different domain is not included.

Generally in Javascript, one can use the credentials: 'include' option, to fetch a file from a different authenticated domain via the Fetch API, see here. Similarly, a script from another authenticated domain can be included, by setting crossorigin="use-credentials" to a Githubissues.

  • Githubissues is a development platform for aggregating issues.