使用WP-API Basic-Auth插件时,仅在新版本的chrome / firefox浏览器上出现401未经授权的响应

时间:2019-04-30 07:01:39

标签: wordpress basic-authentication wordpress-rest-api wp-api

我已经安装了Wordpress团队制作的插件:https://github.com/WP-API/Basic-Auth

我正在使用Wordpress 4.6.14发出此请求:

向以下API发出GET请求 https://website.com/wp-json/wp/v2/users/me?access_token=blnhszockfpzflz9v7nu312s

要从WordPress获取用户数据,但是它在新版本的Chrome和Firefox浏览器上为我提供401状态。

我使用邮递员尝试了此API调用,并且工作正常。

当我使用旧版本的Firefox时,它的状态为302。

我尝试了“ 401未经授权的Wordpress Basic Auth插件”问题中提到的所有解决方案,以及https://github.com/WP-API/Basic-Auth/issues中提到的所有解决方案,但还是没有运气。拜托,有人可以帮我吗?

请参考以下“网络”标签的屏幕截图 enter image description here

0 个答案:

没有答案