From 975a69cc8acf258a489974a5360938cecb32a59e Mon Sep 17 00:00:00 2001 From: Matthieu Riegler Date: Sat, 19 Apr 2025 22:40:50 +0200 Subject: [PATCH] docs: fix NG2800 rendering (#60932) PR Close #60932 --- adev/src/content/reference/errors/NG02800.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/adev/src/content/reference/errors/NG02800.md b/adev/src/content/reference/errors/NG02800.md index eb1ce5e0930..292eccba4ce 100644 --- a/adev/src/content/reference/errors/NG02800.md +++ b/adev/src/content/reference/errors/NG02800.md @@ -3,6 +3,8 @@ 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: -- add the `withJsonpSupport()` as an argument during the `provideHttpClient` function call (e.g. `provideHttpClient(withJsonpSupport())`) when `bootstrapApplication` is used -- import the `HttpClientJsonpModule` in your root AppModule, when NgModule-based bootstrap is used.## Debugging the error +- add the `withJsonpSupport()` as an argument during the `provideHttpClient` function call (e.g. `provideHttpClient(withJsonpSupport())`) when `bootstrapApplication` is useddocs +- import the `HttpClientJsonpModule` in your root AppModule, when NgModule-based bootstrap is used. + +## 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.