I'm using the built-in Backbone Client whenever I try to make a request it gives me this error: {"code":"rest_cookie_invalid_nonce","message":"Cookie nonce is invalid","data":{"status":403}}
I read the Rest API Handbook - Authentication , and from what I've learned I don't need to do any manual setting.
Plugins in use:
I'm using the client for for lazyloading and search, only GET
requests of Posts collections.
我删除了app.js顶部的wpApiSettings.nonce
,这也许不是理想的解决方案,但它可以工作。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.