diff options
author | Dixsie Wolmers <dixsie@ibm.com> | 2021-10-12 23:07:41 +0300 |
---|---|---|
committer | Dixsie Wolmers <dixsiew@gmail.com> | 2021-11-04 16:42:18 +0300 |
commit | bf37b317496c80dc9a87f49356efdab8a3b50caa (patch) | |
tree | bff7dea0af35747189ec55c0b3b3e1df9f678c28 /vue.config.js | |
parent | 8187678816dee0342b46e6f095324097ea734fea (diff) | |
download | webui-vue-bf37b317496c80dc9a87f49356efdab8a3b50caa.tar.xz |
Add keep-alive option in webpack devServer
When running the UI locally we were running into the issue of
getting logged off after logging in because of this change:
https://gerrit.openbmc-project.xyz/c/openbmc/bmcweb/+/45175
Adding the keep-alive option in the webpack config prevents this.
Signed-off-by: Dixsie Wolmers <dixsie@ibm.com>
Change-Id: Ic82b4aa1a272d8ea900c240fbe5f527ebe2e608d
Diffstat (limited to 'vue.config.js')
-rw-r--r-- | vue.config.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/vue.config.js b/vue.config.js index cb33616e..0268002d 100644 --- a/vue.config.js +++ b/vue.config.js @@ -41,6 +41,9 @@ module.exports = { proxy: { '/': { target: process.env.BASE_URL, + headers: { + Connection: 'keep-alive', + }, onProxyRes: (proxyRes) => { // This header is ignored in the browser so removing // it so we don't see warnings in the browser console |