summaryrefslogtreecommitdiff
path: root/babel.config.js
diff options
context:
space:
mode:
authorYoshie Muranaka <yoshiemuranaka@gmail.com>2019-12-07 01:13:59 +0300
committerDerick Montague <derick.montague@ibm.com>2020-01-27 17:37:36 +0300
commit6ce1a07cd07b47b883e840fb34b081146bc92b6d (patch)
treee1f449f31de2d89bb0c29f11e29fbfcbab481be3 /babel.config.js
parent463a57062a1e1f91743e53acb27e867fc4c7584c (diff)
downloadwebui-vue-6ce1a07cd07b47b883e840fb34b081146bc92b6d.tar.xz
Add cookie based login authentication
- Changed POST request data structure to match backend requirements for set-cookie in response header - Added withCredentials property to default axios config - Modifying proxied response to remove 'Secure' flag so browser can create Cookie while running locally - Add logout api request - Add js-cookie package to manage browser cookies - Update the babel preset config to include useBuiltIns, which resolves MIME type errors when overlaying - Disable vue-router history mode to use routher hash mode to resolves 404 errors when refreshing certain pages. This is expected behavior with history mode enabled. Server configuration changes are required to support HTML5 history mode: https://router.vuejs.org/guide/essentials/history-mode.html#example-server-configurations Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com> Signed-off-by: Derick Montague <derick.montague@ibm.com> Change-Id: I5d43f36ef546962474b6cc8fff89564f29048fde
Diffstat (limited to 'babel.config.js')
-rw-r--r--babel.config.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/babel.config.js b/babel.config.js
index 397abca8..a1c27e1c 100644
--- a/babel.config.js
+++ b/babel.config.js
@@ -1,3 +1,3 @@
module.exports = {
- presets: ["@vue/cli-plugin-babel/preset"]
+ presets: [["@vue/cli-plugin-babel/preset", { useBuiltIns: "entry" }]]
};