I am creating an app on angular and eonic, using my wordpress and trying to create new posts I am here.
- I have generated auth cookie using the JSON API user plugin ()
- I have got a valid blockade to make the post.
-
I 'am using all the correct parameters to create a new post:
$ http.post (domain +' / post / create_post? Nonstatus = '+ Non.nc + '& title =' + title + 'and content =' + content + 'and status =' + status + 'and author =' + author)
But when I try to insert a new post, I get this massage: "Error: You need to login with the user with 'edit_posts'"
I have That Uje add cookie parameter in the header request, but I do not understand how.
This is about the user's role, not auth cookie certified cookie Users are logged in, but their roles and capabilities are stored in the database. There are several ways to change the user's role, with the administrator going to admin dashboard, clicking the user, selecting the user name, and selecting "editor" [or whatever is appropriate] in the drop down menu.
No comments:
Post a Comment