module-federation / core

Module Federation is a concept that allows developers to share code and resources across multiple JavaScript applications
https://module-federation.io/
MIT License
1.44k stars 215 forks source link

[CORS]: @module-federation/nextjs-mf #2700

Closed nurulakbaral closed 2 months ago

nurulakbaral commented 3 months ago

Describe the bug

I tried following the guide in the docs but found CORS like this. Should I use Next.js custom server to handle this? I don't see guide in docs.

image

Reproduction

-

Used Package Manager

pnpm

System Info

npx rimraf .next && NEXT_PRIVATE_LOCAL_WEBPACK=true next dev -p 3001

Validations

vini-ak commented 3 months ago

Same issue here, but using yarn as package manager. Any solutions?

ScriptedAlchemy commented 3 months ago

try with latest release of nextjs-mf

vini-ak commented 3 months ago

It worked!!! Thank you so much, @ScriptedAlchemy!

Next.js: v14.1.4 @module-federation/nextjs-mf: v8.3.27