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