fix: cors middleware 설정 추가

dev
minuk926 2 years ago
parent 8eed59be10
commit cdfa5d2aec

@ -4,11 +4,8 @@ module.exports = function (app) {
app.use( app.use(
'/api', '/api',
createProxyMiddleware({ createProxyMiddleware({
target: 'http://localhost:8090',
changeOrigin: true, changeOrigin: true,
pathRewrite: { target: 'http://localhost:8090'
'^/api': ''
}
}) })
); );
}; };

Loading…
Cancel
Save