Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Angular CLI proxy for configure several microApps #6

Open
edgarjoao opened this issue Mar 12, 2021 · 1 comment
Open

Angular CLI proxy for configure several microApps #6

edgarjoao opened this issue Mar 12, 2021 · 1 comment

Comments

@edgarjoao
Copy link

Hi Manfred,
Thank you for provide this kind of open source plugins that will help to the community.

Based in the example of the implementation of the MicroApp and Host/Shell App, the idea it's great as you have described below.
image

For Host/Shell App, is that possible to use Angular proxy CLI instead?

<some-element-ui microApp="/some-element-ui/main.js">
<some-element-ui/>

Host/Shell
Angular CLI proxy configuration

const PROXY_CONFIG = [
    {
        context: [
            "/some-element-ui"
        ],
        target: "http://localhost:3000",
        pathRewrite: {
            "^/some-element-ui" : ""
        },
        secure: false,
        changeOrigin: true
    }
]

module.exports = PROXY_CONFIG;

Thanks,
Edgar

@abhitheflame
Copy link

I am facing the same issue. I have a shell app [angular 13] hosted on my local IIS on port 2000 and a MF app which is hosted on IIS on port 1001. I have loaded my MF within shell app using dynamic module federation in shell route. I am getting CORS error for MF app. Kindly suggest solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants