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

WordPress Trac noreply at wordpress.org
Wed Oct 26 21:29:19 UTC 2016


#38521: REST API: Get rid of the `/users/me` redirect
--------------------------+------------------------------
 Reporter:  jnylen0       |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  REST API      |     Version:  trunk
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------

Comment (by youknowriad):

 I totally agree @joehoyle We should avoid redirections to avoid breaking
 CORS.

 I'm not familiar with the arguments behind the choice of avoiding resource
 duplication on different URLs (Maybe related to caching), naively, I would
 have just done it. But extensive usage of `_links` instead of redirections
 could be a good compromise.

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


More information about the wp-trac mailing list