fix: cors middleware 설정 추가

dev
minuk926 2 years ago
parent 37baeaa4c5
commit 55c898c426

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

Loading…
Cancel
Save