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?

Navid_pdp11
  • 2,417
  • 2
  • 26
  • 48

1 Answers1

0

I finally found solution in this link and resolve my problem.

Community
  • 1
  • 1
Navid_pdp11
  • 2,417
  • 2
  • 26
  • 48