WooCommerce Rest API – 401 Unauthorized
-
I developed a React web app and used WooCommerce REST API to get the order data from WordPress backend.
I encounter this 401 Unauthorized error on server deployment:
{"code":"woocommerce_rest_cannot_view","message":"Sorry, you cannot list resources.","data":{"status":401}}
But I don’t get this error in my development environment.
I checked the request in Chrome Network monitor and confirmed the Basic Auth key is the same with my local development environment.
The request works well in Postman.
I’ve ensured I tried hard refresh when I browse the server deployment.Can give me some advices?
The page I need help with: [log in to see the link]
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘WooCommerce Rest API – 401 Unauthorized’ is closed to new replies.