From 55c898c4268aa15c063c5a3c7407dade93be306c Mon Sep 17 00:00:00 2001 From: minuk926 Date: Wed, 6 Jul 2022 18:38:26 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20cors=20middleware=20=EC=84=A4=EC=A0=95?= =?UTF-8?q?=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/setupProxy.js | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/setupProxy.js b/src/setupProxy.js index c132185..013b89d 100644 --- a/src/setupProxy.js +++ b/src/setupProxy.js @@ -1,10 +1,10 @@ -const { createProxyMiddleware } = require('http-proxy-middleware'); - -module.exports = function (app) { - app.use( - createProxyMiddleware('/api/v1', { - target: 'http://localhost:8090', - changeOrigin: true - }) - ); -}; +// const { createProxyMiddleware } = require('http-proxy-middleware'); +// +// module.exports = function (app) { +// app.use( +// createProxyMiddleware('/api/v1', { +// target: 'http://localhost:8090', +// changeOrigin: true +// }) +// ); +// };