From 831cad0bdddd5e0b502a270f0a17dbcbd1fef2d2 Mon Sep 17 00:00:00 2001 From: Kaja Kvinge Akselsen Date: Tue, 28 Nov 2023 08:41:53 +0100 Subject: [PATCH] Encode URI --- src/common/api/axios/axios.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/api/axios/axios.ts b/src/common/api/axios/axios.ts index 9b692df6..37f2e492 100644 --- a/src/common/api/axios/axios.ts +++ b/src/common/api/axios/axios.ts @@ -65,7 +65,7 @@ export const get = ( options?: AxiosOptions ): Promise => { return axios - .get(url, { + .get(encodeURI(url), { headers: defaultRequestHeaders(options), responseType: options?.responseType, withCredentials: true,