Error Encyclopedia

JSONP support in HttpClient configuration

Angular produces this error when you attempt a JSONP request without providing the necessary support for it in the HttpClient configuration. To enable JSONP support, you can do one of the following:

Debugging the error

Make sure that the JSONP support is added into your application either by calling the withJsonpSupport function (when provideHttpClient is used) or importing the HttpClientJsonpModule module as described above.