From cdfa5d2aec6ac15a0d94ee32f78840cd3283c8ff Mon Sep 17 00:00:00 2001 From: minuk926 Date: Wed, 6 Jul 2022 17:43:46 +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 | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/setupProxy.js b/src/setupProxy.js index 982babe..4d89d27 100644 --- a/src/setupProxy.js +++ b/src/setupProxy.js @@ -4,11 +4,8 @@ module.exports = function (app) { app.use( '/api', createProxyMiddleware({ - target: 'http://localhost:8090', changeOrigin: true, - pathRewrite: { - '^/api': '' - } + target: 'http://localhost:8090' }) ); };