我正在为我的博客开发一个新闻应用程序。baseUrl有问题,当我运行时,我会收到此错误。
Exception has occurred.
WordPressError (WordPress Error!
code: null,
message: {“code”:“rest_user_cannot_view”,
“message”:“Sorry, you are not allowed to list users.”,
“data”:{“status”:401}},
status: null)
您正试图访问未经授权的区域。这是关于特权的。您可以阅读有关HTTP状态代码的更多信息。
suPHPConfigPath/home/USER/public_html在.htaccess中添加这些解决了过程中的问题