fix: cors middleware 설정 추가
parent
0620c4b8ee
commit
8eed59be10
@ -0,0 +1,14 @@
|
||||
const { createProxyMiddleware } = require('http-proxy-middleware');
|
||||
|
||||
module.exports = function (app) {
|
||||
app.use(
|
||||
'/api',
|
||||
createProxyMiddleware({
|
||||
target: 'http://localhost:8090',
|
||||
changeOrigin: true,
|
||||
pathRewrite: {
|
||||
'^/api': ''
|
||||
}
|
||||
})
|
||||
);
|
||||
};
|
Loading…
Reference in New Issue