Skip to content

Commit

Permalink
added webauth header for portforward config (#511)
Browse files Browse the repository at this point in the history
  • Loading branch information
EduardZaydler authored May 15, 2024
1 parent 8b3886e commit 03a460c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions webpack.config.port-forward.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
require("dotenv").config();

const { mergeWithCustomize, customizeObject } = require("webpack-merge");
const commonConfig = require("./webpack.config");

Expand All @@ -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);
},
},
},
},
Expand Down

0 comments on commit 03a460c

Please sign in to comment.