• Overview
@angular/common/http

JsonpClientBackend

Class
deprecatedsince v22.1

Processes an HttpRequest with the JSONP method, by performing JSONP style requests.

Deprecation warning

JSONP is deprecated as it can cause XSS vulnerabilities. Use standard HTTP requests instead. Intent to remove in future versions of Angular.

API

    
      class JsonpClientBackend implements HttpBackend {}
    
    

constructor

JsonpClientBackend
@paramcallbackMapJsonpCallbackContext
@paramdocumentany

handle

Observable<HttpEvent<any>>

Processes a JSONP request and returns an event stream of the results.

@paramreqHttpRequest<never>

The request object.

@returnsObservable<HttpEvent<any>>

An observable of the response events.

Jump to details