【发布时间】:2016-04-11 22:01:11
【问题描述】:
我在 Magento 2 中创建了一个用户角色和一个新用户 image capture
我在 Chrome 中使用了 Postman 应用程序:
在 GET 框中:http://example.com/php.index/rest/V1/products/ 在类型中使用带有用户名和密码的基本身份验证
但是我得到这个状态'401 Unauthorized'并且这个请求:
{
"message": "Consumer is not authorized to access %resources",
"parameters": {
"resources": "Magento_Catalog::products"
}
}
我可以使用用户名和密码登录 Magento 后端
有什么办法吗?
【问题讨论】: