import { HttpEvent , HttpHandler , HttpRequest } from '@angular/common/http' ; import { Injectable } from '@angular/core' ; import { Observable } from 'rxjs' ; @ Injectable ( ) export class ObMockHttpApiInterceptor { intercept ( request , next ) { return next . handle ( request . clone ( { headers : request . headers . set ( 'X-Requested-With' , 'XMLHttpRequest' ) } ) ) ; } }