WordPress REST API and loopback requests return 403 Forbidden

Website URL

https://adamsha.page.gd

Error Message

WordPress Site Health shows:

REST API Endpoint:

https://adamsha.page.gd/wp-json/wp/v2/types/post?context=edit

REST API Response:
403 Forbidden

Loopback request:
403 Forbidden

Other Information

My WordPress site is working, but Site Health still shows REST API and loopback failures. Because of this, scheduled events, page cache detection, and some plugin functions are not working correctly.

Could you please advise whether InfinityFree firewall/security rules, ModSecurity, or hosting restrictions are blocking WordPress REST API /wp-json/, authenticated REST API requests with context=edit, or loopback requests?

Thank you.

In short: this is known behavior, there is no way to “fix” it but it also generally doesn’t affect your website’s functionality.

We’ve documented these issues in our knowledge base here, if you want to know more: