Skip to content
ferkesh.HOSTING
Ferkesh Support Center Ferkesh Knowledge Base Frequently asked questions

How to Check WordPress REST API Discovery Read-Only

WordPress 72 次浏览 Markdown
Four-step workflow. Find API pointer. Check REST index. Compare response. Trace the failing layer.

Start from a public page on a site you manage and inspect the REST discovery link or HTTP Link header when present. It can identify the site’s actual API root, including a subdirectory or alternate route. Request only the public index using GET. Record the final URL, HTTP status and whether the response is a JSON document with the expected site and namespace information.

Compare that result to the failure in the block editor or an integration. If the index works, examine the exact authorized request in your own browser developer tools and record its status and route without copying cookies or nonces. A discovery failure, a legitimate authorization response and a server error are different outcomes. If a proxy returns an HTML challenge instead of JSON, check its logs and supported behavior on staging.

Use a minimal staging reproduction before changing a plugin or access rule. Preserve authentication for private resources. Confirm the original operation succeeds and recheck signed-out behavior after the fix so working editor access does not expose endpoints that were meant to stay private.

If a public route works and only signed-in requests fail, diagnose signed-in REST nonce and cache failures with an authorized staging account.

Official references

Ferkesh Hosting. Last reviewed .

这对您有帮助吗?

感谢您的反馈!

仍需帮助?

如果知识库未能解答您的问题,支持团队全天候为您服务。