Magento 2.2.2调用/rest/V1/customers/me接口提示权限错误求助
Magento 2.2.2 REST API 权限问题求助
我正在开发一款移动应用,用的是Magento 2.2.2版本。这段时间翻遍了各种同类问题的解决方案,但还是被权限问题难住了——不管用curl、Postman还是hurl.it调用GET /rest/V1/customers/me接口,都会返回相同的错误:
message: "Consumer is not authorized to access %resources",parameters: {resources: "self"}
我的Postman请求详情如下:
GET /rest/V1/customers/me HTTP/1.1 Host: myshop.dev Authorization: Bearer grw5y9b3se261541evcdl1js8jd27c8f Cache-Control: no-cache
我已经仔细排查过Bearer与令牌之间的空格,也逐字符核对了所有请求内容,确保没有输入错误。当前用的是全新安装的Magento,还配置了示例数据,而且我也认真研读了官方的认证相关文档,但问题还是没解决,有没有大佬能指点一下?
内容的提问来源于stack exchange,提问作者MePo
相关产品推荐
相关产品推荐

