From bf37b317496c80dc9a87f49356efdab8a3b50caa Mon Sep 17 00:00:00 2001 From: Dixsie Wolmers Date: Tue, 12 Oct 2021 15:07:41 -0500 Subject: 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 Change-Id: Ic82b4aa1a272d8ea900c240fbe5f527ebe2e608d --- vue.config.js | 3 +++ 1 file changed, 3 insertions(+) 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 -- cgit v1.2.3