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-Tag: 10.4.0.87286~389 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=833d3a4d845f6fcd86e01382133b860d5194de09;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();