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': '' }