Questions tagged [http-error-401]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
23 views

Magento 2 : Rest API error the requested URL returned error: 401

We have to test rest API is working or not in magento 2.3 but on my local project work only live site API not working. We have to check site open or not using curl but it's not working. I am not able ...
0
votes
0answers
142 views

Magento 2 401 Ajax Post Request

So I have the following AJAX Post request within vendor/MyModule/view/frontend/templates: let controllerUrl = "<?php echo $block->getUrl('MyModule/index/GetDates'); ?>"; $.post(...
0
votes
2answers
838 views

HTTP 401 Basic Authorization error accessing Magento 2 Rest API

I am trying to use the Magento 2 Rest API, using token authorization. I can successfully POST user/password to /rest/V1/integration/admin/token/, and I get a token returned. But when I try to GET ...
0
votes
1answer
438 views

401 unauthorized due to directory protection on magento 2 project

Is there a way to pass basic authorization and bearer authorization in postman for accessing Magento 2 rest api's. I have defined the directory protection using .htaccess and .htpassword. For getting ...