Skip to content

Commit

Permalink
feat: Added headers
Browse files Browse the repository at this point in the history
  • Loading branch information
howdysuraj committed Mar 22, 2024
1 parent 6475bf6 commit c8bbf9e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/app/core/interceptors/httpInterceptor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down

0 comments on commit c8bbf9e

Please sign in to comment.