The REST API works fine on my local site, but I cannot get the Woocommerce API authorisation working.
I set it up the same way (which works on servers normally) in woocommerce api settings, add permissions to the user and keys.
But when accessing it with the keys supplied:
Example: http://mysite.local/wp-json/wc/v3/products/?consumer_key=SECRET&consumer_secret=SECRET
I get a 401 forbidden response.
{"code":"woocommerce_rest_cannot_view","message":"Sorry, you cannot list resources.","data":{"status":401}}
I’m doing this to test a local development of a plugin which leverages the woocommerce api functionality.