Display – REST API Response: (403) Forbidden
-
Greetings,
Getting this msg. in Site Health.
When testing the REST API, an unexpected result was returned:
REST API Endpoint: https://example.com
/wp-json/
wp/v2/types/post?context=edit
REST API Response: (403) ForbiddenAccess to anything in
/wp-json/
I have restricted by IP addresses of only the server and website. The error is happening because some other IP address is trying to access and that IP address is a Nameserver Shared IP. As many sites use a Shared IP, I’m trying to find the Domain name associated with the IP.What is confusing to me is the REST API Endpoint is using the correct Domain name but a different IP address – which is why it is blocked.
I was hoping this Plugin would help me to determine where or why, whatever file within WordPress; Core, Plugin or Theme, is making the call. Currently I am using Rest API Log v1.6.9 and see that it only shows Response Code 200 and not anything else, like a 403. Are there any plans in future plugin versions to include other Response Codes? Or, if you are able, is there another plugin you can recommend, that will help with this type problem?
Thanks
- The topic ‘Display – REST API Response: (403) Forbidden’ is closed to new replies.