[wp-trac] [WordPress Trac] #40422: REST API JavaScript Client: refresh nonce when a new nonce is available

WordPress Trac noreply at wordpress.org
Wed Apr 12 14:30:59 UTC 2017


#40422: REST API JavaScript Client: refresh nonce when a new nonce is available
-----------------------------+-----------------------------
 Reporter:  adamsilverstein  |      Owner:
     Type:  defect (bug)     |     Status:  new
 Priority:  normal           |  Milestone:  Awaiting Review
Component:  REST API         |    Version:  4.7
 Severity:  normal           |   Keywords:  needs-patch
  Focuses:  javascript       |
-----------------------------+-----------------------------
 Since [37905] the REST API returns a fresh `wp_rest` nonce in the headers
 of (authenticated) requests. The JavaScript client uses nonces for (cookie
 based) authenticated requests and should keep its internal nonce up to
 date with the returned nonce. This will be especially useful for long-
 running JavaScript applications that need to make authenticated requests.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/40422>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list