()
| 243 | * @deprecated 22.1 JSONP is deprecated as it can cause XSS vulnerabilities. Use standard HTTP requests instead. Intent to remove in future versions of Angular. |
| 244 | */ |
| 245 | export function withJsonpSupport(): HttpFeature<HttpFeatureKind.JsonpSupport> { |
| 246 | return makeHttpFeature(HttpFeatureKind.JsonpSupport, [ |
| 247 | JsonpClientBackend, |
| 248 | {provide: JsonpCallbackContext, useFactory: jsonpCallbackContext}, |
| 249 | {provide: HTTP_INTERCEPTOR_FNS, useValue: jsonpInterceptorFn, multi: true}, |
| 250 | ]); |
| 251 | } |
| 252 | |
| 253 | /** |
| 254 | * Configures the current `HttpClient` instance to make requests via the parent injector's |
no test coverage detected