wt-front-shared 1.0.73 → 1.0.74
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -12683,7 +12683,7 @@ class HeadersInterceptor {
|
|
|
12683
12683
|
try {
|
|
12684
12684
|
const userInfo = this.authenticationService.loadAuthDataFromLocalStore();
|
|
12685
12685
|
this.updateRequestData(request.urlWithParams, request.method, errResponse.error.formErrors);
|
|
12686
|
-
const currentHost = window.location.host;
|
|
12686
|
+
const currentHost = this.getDomainByUrl(window.location.host);
|
|
12687
12687
|
const requestDomain = this.getDomainByUrl(request.url);
|
|
12688
12688
|
if (currentHost === requestDomain) {
|
|
12689
12689
|
if (errResponse.status === 401) {
|
|
@@ -12799,9 +12799,10 @@ class HeadersInterceptor {
|
|
|
12799
12799
|
newUrl = urlParams.slice(url.length - 2).join('.');
|
|
12800
12800
|
}
|
|
12801
12801
|
if (newUrl.indexOf('/') !== -1) {
|
|
12802
|
-
|
|
12802
|
+
newUrl = newUrl.split('/')[0];
|
|
12803
12803
|
}
|
|
12804
|
-
|
|
12804
|
+
const urlParams = newUrl.split(':');
|
|
12805
|
+
return urlParams[0];
|
|
12805
12806
|
}
|
|
12806
12807
|
handle401Error(err, userInfo, request, next) {
|
|
12807
12808
|
console.error('[ header.interceptor ][ handle401Error ]', userInfo);
|