[wp-trac] [WordPress Trac] #43266: REST API JavaScript Client: Support an empty string for nonce
WordPress Trac
noreply at wordpress.org
Sun Mar 18 20:04:01 UTC 2018
#43266: REST API JavaScript Client: Support an empty string for nonce
------------------------------+------------------------------
Reporter: ocean90 | Owner: adamsilverstein
Type: enhancement | Status: closed
Priority: normal | Milestone: 4.9.5
Component: REST API | Version: 4.9
Severity: normal | Resolution: fixed
Keywords: has-patch commit | Focuses: javascript
------------------------------+------------------------------
Comment (by ocean90):
In [changeset:"42854"]:
{{{
#!CommitTicketReference repository="" revision="42854"
REST API JavaScript Client: Support an empty string for `nonce` to disable
sending the X-WP-Nonce header.
Passing a `nonce` argument with an empty string to `wp.api.init()` now
does no longer fall back to `wpApiSettings.nonce`. This makes it possible
to stop sending nonce headers, for example to a read-only endpoint on
another site in a multisite install.
Merge of [42852] to the 4.9 branch.
Props adamsilverstein, FPCSJames, ocean90, swissspidy.
See #42948, #43266.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/43266#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list