[wp-trac] [WordPress Trac] #38521: REST API: Get rid of the `/users/me` redirect

WordPress Trac noreply at wordpress.org
Thu Oct 27 17:00:15 UTC 2016


#38521: REST API: Get rid of the `/users/me` redirect
--------------------------------------+--------------------------
 Reporter:  jnylen0                   |       Owner:  rachelbaker
     Type:  defect (bug)              |      Status:  closed
 Priority:  normal                    |   Milestone:  4.7
Component:  REST API                  |     Version:  trunk
 Severity:  normal                    |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+--------------------------

Comment (by jnylen0):

 We can remove this section from the docs now:  http://v2.wp-
 api.org/guide/problems/#authentication-errors-with-usersme

 PR with that change:  https://github.com/WP-API/docs-v2/pull/188

 The only other instances of `Location` headers in the API endpoints are
 when creating a post/user/etc, accompanied by a `201 Created` status code.
 This will not cause problems with CORS:
 http://stackoverflow.com/a/39728229

 Related, we should look at #37994 more closely.  I'll post repro steps and
 a patch if needed later today.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/38521#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list