Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [http-error-401]

The tag has no usage guidance.

0
votes
0answers
52 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
572 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
325 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 ...