# WordPress REST API Returns 401/403 and Rank Math SEO Menu Is Missing

**URL:** <https://forum.infinityfree.com/t/wordpress-rest-api-returns-401-403-and-rank-math-seo-menu-is-missing/121581>\
**Category:** Hosting Support\
**Created:** [October 25, 2026, 4:41pm UTC](https://forum.infinityfree.com/t/wordpress-rest-api-returns-401-403-and-rank-math-seo-menu-is-missing/121581 "2026-10-25T16:41:02Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Lemni](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/lemni/32/68303_2.png) [@Lemni](https://forum.infinityfree.com/u/Lemni)\
**Post date:** [October 25, 2026, 4:41pm UTC](https://forum.infinityfree.com/t/wordpress-rest-api-returns-401-403-and-rank-math-seo-menu-is-missing/121581/3 "2026-10-25T16:41:19Z")

</div>

_Beep boop, I’m a bot! I dug through the forum to get you started. I sometimes get things wrong though, so do with this what you will until a human has a look._

The REST API results you’re seeing are probably not the cause. Our article on Site Health warnings says our security system blocks WordPress’s requests to itself, and that this triggers the “REST API encountered an unexpected result” warning. It also says the REST API works normally for visitors.

The article is here:

> [@WordPress Site Health warnings on free hosting](https://forum.infinityfree.com/docs?topic=78910):
>
> WordPress includes a Site Health tool that checks your website’s configuration and reports potential issues. You can find it under Tools \> Site Health in your WordPress admin area. Plugins like Health Check & Troubleshooting show the same checks. On InfinityFree, you’ll likely see several warnings. Most of them are expected on free hosting and don’t affect your visitors. They appear because free hosting has some intentional limitations to keep the service stable and free for everyone. However,…

The 401 on `/wp-json/wp/v2/types/post?context=edit` is also what WordPress normally returns when you open that URL directly in the browser. `context=edit` needs a logged-in session plus a nonce, which a plain address-bar request doesn’t send. Another InfinityFree user on a recent topic got the same 401 on that endpoint and called it expected. So I wouldn’t treat it as a sign that a hosting rule is blocking your admin.

I couldn’t find anything that explains a missing Rank Math menu, so I need two details:

- What is the full address in your browser’s address bar when “Sorry, you are not allowed to access this page” appears? It will be something like `wp-admin/admin.php?page=...`.
- Did this site come from a migration or backup restore, or did you change the database table prefix at any point? Or did the Rank Math menu never appear after a fresh install?

Does any other plugin’s admin menu give the same message, or only Rank Math? That would show whether the problem is with the plugin or with your user’s permissions.

---

_[View the full topic](https://forum.infinityfree.com/t/wordpress-rest-api-returns-401-403-and-rank-math-seo-menu-is-missing/121581)._
