This repository has been archived by the owner on Nov 14, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 47
Status 401 / Not allowed to Edit #44
Comments
Fixed it by myself thanks to this post: Changing .htaccess did the Trick for me:
|
Not sure what I changed but I have now the same Error again. |
Been battling this one for 24 hours. the .htaccess fix helped this work. |
Yes this was a hard one for me as well 😄 now we developed our own system and do not need WP anymore for this project... |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi there,
I have always an Authentication Error with my WP-Blog. I thought it could be the same error as Issue #25 but below you can see the Output of my header. So this could not be the problem. (XXX is the base64 encoded username:password).
Any other ideas to try out?
curl -v --header "Authorization: Basic XXX" -X POST -d "title=New Title" http://www.hyphy.de/wp-json-v2/wp/v2/posts/3526
< HTTP/1.1 401 Unauthorized
< Date: Tue, 03 May 2016 10:13:17 GMT
< Server: Apache/2.2.31 (Unix)
< X-Powered-By: PHP/5.5.34
< X-Content-Type-Options: nosniff
< Access-Control-Expose-Headers: X-WP-Total, X-WP-TotalPages
< Access-Control-Allow-Headers: Authorization
< Transfer-Encoding: chunked
< Content-Type: application/json; charset=UTF-8
<
{"code":"rest_cannot_edit","message":"Sorry, you are not allowed to update this post.","data":{"status":401}}
The text was updated successfully, but these errors were encountered: