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) { module.exports = function (app) {
app.use( app.use(
'/api', '/api/v2',
createProxyMiddleware({ createProxyMiddleware({
target: 'http://localhost:8090', target: 'http://localhost:8090',
pathRewrite: { changeOrigin: true
'^/api': ''
}
}) })
); );
}; };

Loading…
Cancel
Save