intelica-library-ui 0.1.53 → 0.1.54
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.
|
@@ -288,6 +288,7 @@ const ErrorInterceptor = (req, next) => {
|
|
|
288
288
|
const sweetAlertService = inject(SweetAlertService);
|
|
289
289
|
const configService = inject(ConfigService);
|
|
290
290
|
const HeaderSettings = {};
|
|
291
|
+
const authenticationClientID = configService.environment?.clientID ?? "";
|
|
291
292
|
if (!req.url.includes("environment.json")) {
|
|
292
293
|
HeaderSettings["Accept"] = "application/json";
|
|
293
294
|
HeaderSettings["Content-Type"] = "application/json";
|
|
@@ -296,6 +297,7 @@ const ErrorInterceptor = (req, next) => {
|
|
|
296
297
|
HeaderSettings["ClientID"] = configService.environment?.clientID ?? "";
|
|
297
298
|
HeaderSettings["PageRoot"] = commonFeatureFlagService.GetPageRoot();
|
|
298
299
|
HeaderSettings["LanguageCode"] = getCookie("language") ?? "";
|
|
300
|
+
HeaderSettings["Access"] = authenticationClientID == "" ? "" : getCookie(authenticationClientID) ?? "";
|
|
299
301
|
}
|
|
300
302
|
let _request = req.clone({ headers: new HttpHeaders(HeaderSettings) });
|
|
301
303
|
return next(_request).pipe(catchError(handleErrorResponse));
|