Support » Plugin: WooCommerce » WooCommerce REST API cookie issue 401

  • Resolved pabloleone

    (@pabloleone)


    Hi @all,

    I’m having a problem with WooCommercer REST API.

    My site is under https, I’ve created a REST API consumer key and enabled the legacy API.

    The issue is when I’m logged in.

    This URL works when I’m not logged in.

    https://shop.gobokly.com/wp-json/wc/v3/products?consumer_key=123456&consumer_secret=123456&page=1&search=Gl&status=publish

    As soon as log in the response change to

    {“code”:”woocommerce_rest_cannot_view”,”message”:”Lo siento, no puedes listar los recursos.”,”data”:{“status”:401}}

    I’ve tested using Postman and the issue is with the cookie header, the problem is that I’m not sure why the cookie is overriding the REST API authentication, moreover, this happens even when I’m logged in as admin which has all permissions.

    How can I prevent the cookie to be read and cause the issue?

    Thank you.

    • This topic was modified 2 months ago by pabloleone. Reason: Highlight the issue in the title

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.