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
Copy file name to clipboardExpand all lines: guide/authentication/index.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -28,7 +28,7 @@ correctly for any custom requests.
28
28
29
29
For developers making manual Ajax requests, the nonce will need to be passed
30
30
with each request. The API uses nonces with the action set to `wp_rest`. These
31
-
can then be passed to the API via the `_wp_rest_nonce` data parameter (either POST data or in the query for GET requests), or via the `X-WP-Nonce` header.
31
+
can then be passed to the API via the `_wpnonce` data parameter (either POST data or in the query for GET requests), or via the `X-WP-Nonce` header.
32
32
33
33
It is important to keep in mind that this authentication method relies on WordPress cookies. As a result this method is only applicable when the REST API is used inside of WordPress and the current user is logged in. In addition, the current user must have the appropriate capability to perform the action being performed.
0 commit comments