Showing
1 changed file
with
10 additions
and
0 deletions
weather_briefing/src/setupProxy.js
0 → 100644
1 | +const { createProxyMiddleware } = require("http-proxy-middleware"); | ||
2 | + | ||
3 | +module.exports = function(app) { | ||
4 | + app.use( | ||
5 | + createProxyMiddleware('/', { | ||
6 | + target: 'http://localhost:4000', //접속하려는 서버의 루트 URL | ||
7 | + changeOrigin: true | ||
8 | + }) | ||
9 | + ); | ||
10 | +}; | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
-
Please register or login to post a comment