WP API backbone client 403 error
-
Using the WP API backbone client in admin and I keep running into an error that I can track down. On initial load of a post I run this simple code
export const posts = ( postID ) => { const post = new wp.api.models.Post( { id: postID } ); return post.fetch().done(function (res) { return res; }); };
which seems to fetch the schema from
/wp/v2/
I can hit that route just fine and get back the proper API response, but for some reason, the client where I am attempting to load my post obj, I get back a 403 with json response of
{"code":"rest_cookie_invalid_nonce","message":"Cookie nonce is invalid","data":{"status":403}}
Any ideas on how to fix?
- The topic ‘WP API backbone client 403 error’ is closed to new replies.