]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-21118 Support web context for POST and PATCH /users
authorViktor Vorona <viktor.vorona@sonarsource.com>
Wed, 29 Nov 2023 12:07:28 +0000 (13:07 +0100)
committersonartech <sonartech@sonarsource.com>
Wed, 29 Nov 2023 20:02:37 +0000 (20:02 +0000)
server/sonar-web/src/main/js/app/index.ts

index 2bdfec30b4abcb9b9e2a8ee69e915bee42e905c3..ff2289ebf4cfcb6efd6eee6186c3c0ba87b0eea6 100644 (file)
@@ -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();