setupProxy.js 290 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 10 const { createProxyMiddleware } = require("http-proxy-middleware"); module.exports = function(app) { app.use( createProxyMiddleware('/api', { target: 'http://localhost:4000', //접속하려는 서버의 루트 URL changeOrigin: true }) ); };