2

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:

  • Askimet Anti-spam
  • WP Fastest Cache
  • iThemes
  • WP Bannerize
  • Yoast

Side note: I'm using the client for for lazyloading and search.

3
  • What kind of API request are you trying? Commented Jun 18, 2018 at 7:19
  • Only GET requests of Posts collections. As I've said, just for lazyloading and search results. Commented Jun 18, 2018 at 18:42
  • A logout/login fixed this for me.
    – Sven
    Commented Feb 13, 2020 at 17:32

1 Answer 1

1

I delete wpApiSettings.nonce at the top of my app.js, perhaps not an ideal solution but it works.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.