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

setupProxy.js file not working for single-spa-react #50

Open
ram97510 opened this issue Jun 22, 2023 · 0 comments
Open

setupProxy.js file not working for single-spa-react #50

ram97510 opened this issue Jun 22, 2023 · 0 comments

Comments

@ram97510
Copy link

const { createProxyMiddleware } = require("http-proxy-middleware");

module.exports = function (app) {
app.use(
"/3",
createProxyMiddleware({
target:
"http://localhost:3000",
headers: {
method: "GET",
},
changeOrigin: true,
})
);
};

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

1 participant