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
diff --git a/vue.config.js b/vue.config.js
index 429b273..e40b01e 100644
--- a/vue.config.js
+++ b/vue.config.js
@@ -19,14 +19,6 @@
// 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;
- }
}
}
},