• 개요
@angular/common/http

JsonpInterceptor

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

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

사용 중단을 권고합니다.

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

API

    
      class JsonpInterceptor {}
    
    

intercept

Observable<HttpEvent<any>>

Identifies and handles a given JSONP request.

@paraminitialRequestHttpRequest<any>

The outgoing request object to handle.

@paramnextHttpHandler

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

@returnsObservable<HttpEvent<any>>

An observable of the event stream.

상세 내용으로 이동