diff --git a/webpack.config.port-forward.js b/webpack.config.port-forward.js index b66f4ca7..071257bb 100644 --- a/webpack.config.port-forward.js +++ b/webpack.config.port-forward.js @@ -1,3 +1,5 @@ +require("dotenv").config(); + const { mergeWithCustomize, customizeObject } = require("webpack-merge"); const commonConfig = require("./webpack.config"); @@ -8,6 +10,9 @@ module.exports = mergeWithCustomize({ proxy: { "/api": { target: "http://localhost:9002", + onProxyReq: function (proxyReq) { + proxyReq.setHeader("X-WebAuth-User", process.env.WEB_AUTH_USER_HEADER); + }, }, }, },