We have two different environments. One is a development environment with no cloudflare connectivity. The other is our live environment which has Cloudflare installed on it.
The websites are identical, down to the hosting stack.
Our REST API calls work fine on the development environment, but when we attempt those requests on our live environment (with Cloudflare), we receive this error:
b’{“code”:“woocommerce_rest_cannot_view”,“message”:“Sorry, you cannot list resources.”,“data”:{“status”:401}}’
We’ve tried two different sets of API Consumer Keys and Secrets - we’ve also made sure the API Keys have appropriate read permissions - but still no luck.
We believe these might be getting blocked by cloudflare, when we monitor the Instant Logs on the Cloudflare dashboard we can see the 401 Unauthorized request pop up when we attempt to connect - but we cannot seem to get it to stop blocking it.
Any suggestions?