DEV Community

Discussion on: Tutorial: Getting Started with Webpack Module Federation and Angular

Collapse
 
nitinadik profile image
Nitin Adik

Hello, I have build three microfrontend angular application one is running on port 4200 as Shell and other two running as remote on port 4201 and 4202 respectively.
It is working well on ng serve locally and getting response by remote.js files with no issue.
But when i deploy these services on servers and try to access from Shell,
it is throwing cors origin error while accessing remote.js file.

Please let me know how can i fix this issue.

Collapse
 
avantijundare profile image
Avanti-Jundare

Have you found out the solution for it ?

Collapse
 
smcgilvery profile image
Scott Mcgilvery • Edited

I'm encountering the same issue, works locally, but when deployed to different server I'm getting CORS issues. Have you figured out how to correct this?

Collapse
 
avantijundare profile image
Avanti-Jundare

Have anyone figured this out . I am also facing the same issue