summaryrefslogtreecommitdiff
path: root/package.json
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 /package.json
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 'package.json')
-rw-r--r--package.json1
1 files changed, 1 insertions, 0 deletions
diff --git a/package.json b/package.json
index cb44ebc7..be433959 100644
--- a/package.json
+++ b/package.json
@@ -15,6 +15,7 @@
"bootstrap": "4.3.1",
"bootstrap-vue": "2.1.0",
"core-js": "3.3.2",
+ "js-cookie": "^2.2.1",
"vue": "2.6.10",
"vue-date-fns": "^1.1.0",
"vue-router": "3.1.3",