From c8bbf9e2e7422764dfbbfd29355fe67d1155cd1a Mon Sep 17 00:00:00 2001 From: howdysuraj Date: Fri, 22 Mar 2024 13:51:13 +0530 Subject: [PATCH] feat: Added headers --- src/app/core/interceptors/httpInterceptor.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/app/core/interceptors/httpInterceptor.ts b/src/app/core/interceptors/httpInterceptor.ts index e4bff7ae62..57c3cd49ef 100644 --- a/src/app/core/interceptors/httpInterceptor.ts +++ b/src/app/core/interceptors/httpInterceptor.ts @@ -128,7 +128,13 @@ export class HttpConfigInterceptor implements HttpInterceptor { const osVersion = deviceInfo.osVersion; const operatingSystem = deviceInfo.operatingSystem; const mobileModifiedappVersion = `fyle-mobile::${appVersion}::${operatingSystem}::${osVersion}`; - request = request.clone({ headers: request.headers.set('X-App-Version', mobileModifiedappVersion) }); + request = request.clone({ + setHeaders: { + 'X-App-Version': mobileModifiedappVersion, + 'X-Page-Url': `${window.location.href}`, + 'X-Source-Identifier': 'mobile_app', + }, + }); return next.handle(request).pipe( catchError((error) => {