From 39df197db8c7d44fab689693de18ea9aa9ef1809 Mon Sep 17 00:00:00 2001 From: Viktor Vorona Date: Wed, 29 Nov 2023 13:07:28 +0100 Subject: [PATCH] SONAR-21118 Support web context for POST and PATCH /users --- server/sonar-web/src/main/js/app/index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/server/sonar-web/src/main/js/app/index.ts b/server/sonar-web/src/main/js/app/index.ts index 2bdfec30b4a..ff2289ebf4c 100644 --- a/server/sonar-web/src/main/js/app/index.ts +++ b/server/sonar-web/src/main/js/app/index.ts @@ -40,6 +40,7 @@ initApplication(); async function initApplication() { axiosToCatch.interceptors.response.use((response) => response.data); + axiosToCatch.defaults.baseURL = getBaseUrl(); axiosToCatch.defaults.headers.patch['Content-Type'] = 'application/merge-patch+json'; axios.defaults.headers.patch['Content-Type'] = 'application/merge-patch+json'; axios.defaults.baseURL = getBaseUrl(); -- 2.39.5