• Resolved danieltang3434

    (@danieltang3434)


    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)
  • Thread Starter danieltang3434

    (@danieltang3434)

    Update: It seems like it only happens when I use Microsoft Edge, when I open the server deployment link in Google Chrome, no error shows.

Viewing 1 replies (of 1 total)
  • The topic ‘WooCommerce Rest API – 401 Unauthorized’ is closed to new replies.