REST API cookie authentication
-
Hello,
I can’t get the built-in REST API cookie authentication to work. I’ve read the authentication guide and all I can find on the internet about the subject without much success.
I’m logged in as admin on a locally installed wordpress.
Open in chrome: http://localhost:8002/wp-json/wp/v2/users/me
Getting this:
`json
{
“code”: “rest_not_logged_in”,
“message”: “You are not currently logged in.”,
“data”: {
“status”: 401
}
}
` -
Howdy hoelt!
It seems that you’re working with a site not hosted on WordPress.COM. Your site is most likely a software install of WordPress.ORG which means that it is not applicable to this forum.
It would be better suited for you to ask this question at https://WordPress.org/support/ for a more accurate answer. If you don’t have a WordPress.ORG account you’ll need to create one. Your WordPress.COM account won’t work there.
Also, you can read the differences of WordPress.com and WordPress.org.
If you need any further assistance, let me know. Thank you for your understanding!
- The topic ‘REST API cookie authentication’ is closed to new replies.