From 8cb36fa58c93ee436f4400cc8f55da63365faf4f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20S=C3=A1nchez-Gallego?= Date: Fri, 28 Jun 2024 13:00:24 -0700 Subject: [PATCH 1/2] Use axiosInstance in all components --- src/components/ConeSearch.vue | 10 +++++----- src/components/LoginForm.vue | 10 +++++----- src/components/ReleaseSelect.vue | 9 ++++----- src/components/Solara.vue | 6 +++--- src/components/TargetResolver.vue | 8 ++++---- 5 files changed, 21 insertions(+), 22 deletions(-) diff --git a/src/components/ConeSearch.vue b/src/components/ConeSearch.vue index 5a86450..4f143dd 100644 --- a/src/components/ConeSearch.vue +++ b/src/components/ConeSearch.vue @@ -26,10 +26,10 @@ \ No newline at end of file + From e49d551c380a1de9a1b8be5ff0996b03ebe9ab72 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20S=C3=A1nchez-Gallego?= Date: Fri, 28 Jun 2024 13:01:57 -0700 Subject: [PATCH 2/2] Use withCredentials in axios --- src/axios.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/axios.ts b/src/axios.ts index 5bd2328..14fdca2 100644 --- a/src/axios.ts +++ b/src/axios.ts @@ -5,6 +5,7 @@ import JSONbig from 'json-big' const axiosInstance = axios.create({ baseURL: import.meta.env.VITE_API_URL, timeout: 5000, + withCredentials: true, transformResponse: [ function transform(data) { // Replacing the default transformResponse in axios because this uses JSON.parse and causes problems