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?
- This topic was modified 5 years, 2 months ago by .
- This topic was modified 5 years, 2 months ago by .
The page I need help with: [log in to see the link]
The topic ‘WooCommerce Rest API – 401 Unauthorized’ is closed to new replies.