WordPress: wp-json REST API 403

In Misc

If you see this error:

Failed to load resource: the server responded with a status of 403 ()
/wp-json/wp/v2/users/?who=authors&per_page=100&_locale=user:1 
Failed to load resource: the server responded with a status of 403 ()
/wp-json/wp/v2/taxonomies/category?context=edit&_locale=user:1
Failed to load resource: the server responded with a status of 403 ()
post_tag:1
Failed to load resource: the server responded with a status of 403 ()
/wp-json/wp/v2/categories?per_page=100&orderby=name&order=asc&_fields=id%2Cname%2Cparent&_locale=user:1
https://victorwyee.com/wp-json/wp/v2/taxonomies/post_tag?context=edit&_locale=user 403
https://victorwyee.com/wp-json/wp/v2/users/me?_locale=user
https://victorwyee.com/wp-json/wp/v2/taxonomies/category?context=edit&_locale=user
WordPress: wp-json REST API 403 1

the first solution you should try is to log out and log back in. Or use a different browser, preferably in incognito mode. I’ve been bitten twice by this error — which shows up even when I’m logged in — and in both times, it was an outdated cookie or nonce token being sent against the WordPress API.

6 Comments

S. Monsen 2021-03-08 Reply

Thanks! That was it.

Alex 2021-08-01 Reply

Thank you!

ferdmaster 2021-08-06 Reply

For me it was the plugin Font Awesome. Deactivated it everything is back to normal. Don’t know why this little plugin caused such a problem but I’m glad it is resolved.

Elena 2021-09-08 Reply

Thanks for your help!!!

Stanley 2021-11-24 Reply

It works! Thanks for your great help!!!

Steve 2022-06-07 Reply

Glad I’m not alone with this issue.

In my case, it was iThemes security in ‘Restricted API’ for wp-json.

If anyone else is in this position I suggest using dev tools to look at the network *response* for the wp-json data that is rejected. You can usually get additional clues from this.

Leave a Reply