fix: cors middleware 설정 추가

mpower
minuk926 2 years ago
parent 7841847321
commit 997786fe93

@ -2,12 +2,10 @@ const { createProxyMiddleware } = require('http-proxy-middleware');
module.exports = function (app) {
app.use(
'/api',
'/api/v2',
createProxyMiddleware({
target: 'http://localhost:8090',
pathRewrite: {
'^/api': ''
}
changeOrigin: true
})
);
};

Loading…
Cancel
Save