[wp-trac] [WordPress Trac] #40494: /wp-json/wp/v2/users/me api endpoint (it's part of the core now) returns 401 not logged in
WordPress Trac
noreply at wordpress.org
Thu Apr 20 12:47:12 UTC 2017
#40494: /wp-json/wp/v2/users/me api endpoint (it's part of the core now) returns
401 not logged in
--------------------------+------------------------------
Reporter: asudakov | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: REST API | Version: 4.7.3
Severity: normal | Resolution:
Keywords: | Focuses:
--------------------------+------------------------------
Comment (by danielbachhuber):
Hi @asudakov,
Can you share more details on how you're authenticating your request?
If you're using cookie-based authentication, are you including a nonce in
your request? If you don't include a nonce, WordPress will treat the
request as unauthenticated, which would exhibit the behavior you see.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/40494#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list