Flutter 尝试从博客获取帖子到Flatter移动应用程序时出错
我正在为我的博客开发一个新闻应用程序。baseUrl有问题,当我运行时,会出现此错误Flutter 尝试从博客获取帖子到Flatter移动应用程序时出错,flutter,wordpress-rest-api,Flutter,Wordpress Rest Api,我正在为我的博客开发一个新闻应用程序。baseUrl有问题,当我运行时,会出现此错误 Exception has occurred. WordPressError (WordPress Error! code: null, message: {“code”:“rest_user_cannot_view”, “message”:“Sorry, you are
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)
您正试图访问未经授权的区域。这是关于特权的。您可以阅读有关的更多信息。suPHP\u ConfigPath/home/USER/public\u html
将这些添加到.htaccess中解决了这个问题我有针对WP REST API的JWT身份验证setException发生了。WordPressError(WordPress Error!代码:null,消息:您的网站出现严重错误。有关在WordPress中调试的详细信息。,状态:null)请将其编辑到您的帖子中