diff --git a/src/boot/axios.js b/src/boot/axios.js index 185fdcbb..914ebfd5 100644 --- a/src/boot/axios.js +++ b/src/boot/axios.js @@ -21,7 +21,6 @@ export function setErrorMessage(data, message) { export default function ({ app, router }) { app.config.globalProperties.$axios = axios; - axios.defaults.withCredentials = true; axios.interceptors.request.use( @@ -67,7 +66,11 @@ export default function ({ app, router }) { // perms else if (error.response.status === 403) { // don't notify user if method is GET - if (error.config.method === "get" || error.config.method === "patch") + if ( + error.config.method === "get" || + error.config.method === "patch" || + error.config.url === "accounts/ssoproviders/token/" + ) return Promise.reject({ ...error }); text = error.response.data.detail; } diff --git a/src/components/accounts/UserSessionsTable.vue b/src/components/accounts/UserSessionsTable.vue index f6c0b3a8..6f8242f1 100644 --- a/src/components/accounts/UserSessionsTable.vue +++ b/src/components/accounts/UserSessionsTable.vue @@ -37,8 +37,8 @@