{ "id": "api/common/http/HttpClientJsonpModule", "title": "HttpClientJsonpModule", "contents": "\n\n
\n
\n
\n \n API > @angular/common > @angular/common/http\n
\n \n
\n \n
\n

HttpClientJsonpModulelink

\n \n \n \n \n \n
\n \n \n\n
\n \n
\n

Configures the dependency injector for HttpClient\nwith supporting services for JSONP.\nWithout this module, Jsonp requests reach the backend\nwith method JSONP, where they are rejected.

\n\n

See more...

\n
\n \n \n \n
\n\nclass HttpClientJsonpModule {\n}\n\n\n \n \n\n
\n\n\n \n\n \n \n \n
\n

Descriptionlink

\n

You can add interceptors to the chain behind HttpClient by binding them to the\nmultiprovider for built-in DI token HTTP_INTERCEPTORS.

\n\n \n
\n\n \n\n \n\n \n\n \n\n\n \n\n\n \n \n
\n

Providerslink

\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
Provider
\n \n JsonpClientBackend\n \n
\n \n { provide: JsonpCallbackContext, useFactory: jsonpCallbackContext }\n \n
\n \n { provide: HTTP_INTERCEPTORS, useClass: JsonpInterceptor, multi: true }\n \n
\n
\n\n \n\n \n \n\n\n \n\n\n
\n
\n\n\n" }