The WordPress REST API endpoint is registered and accepts POST requests

Website URL

https://foliora.online/wp-json/foliora-license/v1/update

Error Message

HTTP 403 Forbidden
403 Forbidden openresty

Other Information

The WordPress REST API endpoint is registered and accepts POST requests.

External POST requests from my client website (coffe.totalh.net) are returning HTTP 403.

Diagnostic details:

  • Transport: external_http
  • Content-Type: text/html
  • Server: cloudflare
  • Response: 403 Forbidden openresty

Please investigate whether your firewall, WAF, ModSecurity, or reverse proxy is blocking these requests.

I need POST requests to this REST API endpoint to be allowed.

Thank you.

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.

This looks like the browser security system on free hosting, not a firewall rule or ModSecurity setting that can be switched off for your endpoint. It requires JavaScript and cookies, and a server-to-server POST can’t do either. The article says API clients usually get a “403 Forbidden” or an HTML page back, which matches the HTML 403 your client site received. It lists REST API endpoints hosted on your site, and third-party services calling them, as affected:

The article lists no way to allow specific endpoints on a free account. Its options are:

  • Move the license endpoint to premium hosting, which doesn’t have this restriction.
  • Host it on a service built for APIs.
  • Turn it around so your site makes the outbound requests. Only inbound API requests to a free site are blocked.

I haven’t seen anything that says your account itself has been flagged. This is the same behaviour every free site gets.