You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: docs/content/error/$http/badjsonp.ngdoc
+3-3
Original file line number
Diff line number
Diff line change
@@ -3,16 +3,16 @@
3
3
@fullName Bad JSONP Request Configuration
4
4
@description
5
5
6
-
This error occurs when the URL generated from the configuration object contains a parameter with the same name as the configured `callbackParam`
6
+
This error occurs when the URL generated from the configuration object contains a parameter with the same name as the configured `jsonpCallbackParam`
7
7
property; or when it contains a parameter whose value is `JSON_CALLBACK`.
8
8
9
9
`$http` JSON requests need to attach a callback query parameter to the URL. The name of this parameter is specified in the configuration
10
-
object (or in the defaults) via the `callbackParam` property. You must not provide your own parameter with this name in the configuration
10
+
object (or in the defaults) via the `jsonpCallbackParam` property. You must not provide your own parameter with this name in the configuration
11
11
of the request.
12
12
13
13
In previous versions of Angular, you specified where to add the callback parameter value via the `JSON_CALLBACK` placeholder. This is no longer
14
14
allowed.
15
15
16
-
To resolve this error, remove any parameters that have the same name as the `callbackParam`; and/or remove any parameters that have a value of `JSON_CALLBACK`.
16
+
To resolve this error, remove any parameters that have the same name as the `jsonpCallbackParam`; and/or remove any parameters that have a value of `JSON_CALLBACK`.
17
17
18
18
For more information, see the {@link ng.$http#jsonp `$http.jsonp()`} method API documentation.
0 commit comments