[wp-meta] [Making WordPress.org] #5102: Clicking 'Favourite' w/ expired cookie takes to page with json error

Making WordPress.org noreply at wordpress.org
Mon Mar 16 21:58:01 UTC 2020


#5102: Clicking 'Favourite' w/ expired cookie takes to page with json error
------------------------------+--------------------
 Reporter:  garrett-eclipse   |      Owner:  (none)
     Type:  defect            |     Status:  new
 Priority:  normal            |  Milestone:
Component:  Plugin Directory  |   Keywords:
------------------------------+--------------------
 If you're on a plugin page with an expired cookie and you click favourite
 it will take you to a white page with a json error;
 `{"code":"rest_cookie_invalid_nonce","message":"Cookie nonce is
 invalid","data":{"status":403}}`
 URL - https://wordpress.org/plugins/wp-json/plugins/v1/plugin/plugin-
 name/favorite?_wpnonce=d3dc9a15fb&favorite=1

 It would be nice if this could be caught and provided as a nicer message
 on the page instead of taking over the entire page.

-- 
Ticket URL: <https://meta.trac.wordpress.org/ticket/5102>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org


More information about the wp-meta mailing list