hello, I tried both and the same error.
I talked with the hosting and they told me this:
——
I also used Postman to test the connection but I am getting the same 401 error:
{
“code”: “woocommerce_rest_cannot_view”,
“message”: “Sorry, you cannot list resources.”,
“data”: {
“status”: 401
}
}
And according to the Postman software, it seems that the Authorization header is enabled on the server:
Access-Control-Allow-Headers – Authorization
—–
I would appreciate if you have some idea how to solve it. I have tried too many things and I’m not able to import.
I have also to confirm that i’m trying this in a subdomain. I don’t know if the problem is because I’m not working in the root domain.