Rest_forbidden error in wp_rest api only for settings in wordpress

I got the whole API from WordPress, except the settings (/ wp / v2 / settings). its returning rest_forbidden error

{
  "code": "rest_forbidden",
  "message": "Sorry, you are not allowed to do that.",
  "data": {
    "status": 403
  }
}
+8
source share
1 answer

Well, that’s pretty clear. You do not have permission to change the settings. You are not logged in as an administrator.

[edit] I love SO! Thanks for the minus!

[edit] No, you are actually getting this error because you DID NOT LOGIN . This is an authentication error that occurs when you try to perform an action. This speaks for itself, not because you are stupid [not enough information], but because it is SELF-EXPLAIN. This is because you:

"NOT ALLOWED TO DO THAT"

"" - , . , , cookie WordPress , -who, , - - http. [, ], .

-1

All Articles