I am using wp-api-v2 and Basic Auth plugin to add post to my wordpress. it work nice in my local wamp server but wen i upload my code on online server my credential not working and prevent me to aading new post by this error:
"Sorry, you are not allowed to create new posts."
I add my credential by putting this key/value pair to my request header:
key=>"Authorization",
value=>"Basic ".base64_encode($username.":".$password)
is there any Possibility for misconfiguration or problem in my server?