From: Viktor Vorona Date: Wed, 29 Nov 2023 12:07:28 +0000 (+0100) Subject: SONAR-21118 Support web context for POST and PATCH /users X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=39df197db8c7d44fab689693de18ea9aa9ef1809;p=sonarqube.git SONAR-21118 Support web context for POST and PATCH /users --- 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();