Cookies concent notice

This site uses cookies from Google to deliver its services and to analyze traffic.
Learn more
Skip to main content
This site is no longer updated.Head to Angular.devHome
/

This is the archived documentation for Angular v17. Please visit angular.dev to see this page for the current version of Angular.

JsonpInterceptor

Identifies requests with the method JSONP and shifts them to the JsonpClientBackend.

      
      class JsonpInterceptor {
intercept(initialRequest: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>> }

See also

Methods

Identifies and handles a given JSONP request.

      
      intercept(initialRequest: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>>
    
Parameters
initialRequest HttpRequest<any>

The outgoing request object to handle.

next HttpHandler

The next interceptor in the chain, or the backend if no interceptors remain in the chain.

Returns

Observable<HttpEvent<any>>: An observable of the event stream.