• 개요
@angular/common/http

JsonpClientBackend

클래스
사용 중단 권고v22.1부터

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

사용 중단을 권고합니다.

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.

상세 내용으로 이동