From 762eaae07377499f246a8f70523458bced492408 Mon Sep 17 00:00:00 2001 From: Aiyush Date: Wed, 3 Apr 2024 22:01:29 +0530 Subject: [PATCH] Revert "feat: Added headers (#2842)" (#2858) This reverts commit 2a130bb8fdc05532f03f64a3fcf92bc34a41234e. Co-authored-by: julias0 --- src/app/core/interceptors/httpInterceptor.ts | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/app/core/interceptors/httpInterceptor.ts b/src/app/core/interceptors/httpInterceptor.ts index 57c3cd49ef..e4bff7ae62 100644 --- a/src/app/core/interceptors/httpInterceptor.ts +++ b/src/app/core/interceptors/httpInterceptor.ts @@ -128,13 +128,7 @@ export class HttpConfigInterceptor implements HttpInterceptor { const osVersion = deviceInfo.osVersion; const operatingSystem = deviceInfo.operatingSystem; const mobileModifiedappVersion = `fyle-mobile::${appVersion}::${operatingSystem}::${osVersion}`; - request = request.clone({ - setHeaders: { - 'X-App-Version': mobileModifiedappVersion, - 'X-Page-Url': `${window.location.href}`, - 'X-Source-Identifier': 'mobile_app', - }, - }); + request = request.clone({ headers: request.headers.set('X-App-Version', mobileModifiedappVersion) }); return next.handle(request).pipe( catchError((error) => {