summaryrefslogtreecommitdiff
path: root/vue.config.js
diff options
context:
space:
mode:
authorYoshie Muranaka <yoshiemuranaka@gmail.com>2020-01-31 01:38:29 +0300
committerGunnar Mills <gmills@us.ibm.com>2020-02-05 17:49:00 +0300
commit7d5c3a7a0f59642c5e9c99989376410155fe425b (patch)
tree7d466ba382fe39b21fc86fd97014c35ec5f4233d /vue.config.js
parentfa8a15c46633bf34cfdb0df9e171f5a240793ff7 (diff)
downloadwebui-vue-7d5c3a7a0f59642c5e9c99989376410155fe425b.tar.xz
Update config to keep 'secure' attribute
Since switching to secure https protocol for development https://gerrit.openbmc-project.xyz/c/openbmc/webui-vue/+/28729/7 no need to remove 'secure' attribute from response header. Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com> Change-Id: Ic7bddb4572ec8ccd3029c493ca57627dd24b8ae4
Diffstat (limited to 'vue.config.js')
-rw-r--r--vue.config.js8
1 files changed, 0 insertions, 8 deletions
diff --git a/vue.config.js b/vue.config.js
index 429b273e..e40b01ef 100644
--- a/vue.config.js
+++ b/vue.config.js
@@ -19,14 +19,6 @@ module.exports = {
// This header is igorned in the browser so removing
// it so we don't see warnings in the browser console
delete proxyRes.headers['strict-transport-security'];
- if (proxyRes.headers['set-cookie']) {
- // Need to remove 'Secure' flag on set-cookie value so browser
- // can create cookie for local development
- const cookies = proxyRes.headers['set-cookie'].map(cookie =>
- cookie.replace(/; secure/gi, '')
- );
- proxyRes.headers['set-cookie'] = cookies;
- }
}
}
},