From 6d158337532a4d809c9a37c89a3f0bad15707b69 Mon Sep 17 00:00:00 2001 From: vapao Date: Fri, 10 Jan 2020 12:37:56 +0800 Subject: [PATCH] U web update --- spug_web/src/setupProxy.js | 1 + 1 file changed, 1 insertion(+) diff --git a/spug_web/src/setupProxy.js b/spug_web/src/setupProxy.js index 2ed7fd0..fb2eaa8 100644 --- a/spug_web/src/setupProxy.js +++ b/spug_web/src/setupProxy.js @@ -5,6 +5,7 @@ module.exports = function (app) { target: 'http://127.0.0.1:8000', changeOrigin: true, ws: true, + headers: {'X-Real-IP': '127.0.0.1'}, pathRewrite: { '^/api': '' }