0

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?

4

1 回答 1

0

我终于在此链接中找到了解决方案并解决了我的问题。

于 2016-05-14T11:54:48.867 回答