Basic Autentication with WP REST API 2
-
Hi there.
I’m trying to make some tests running WP REST API on WordPress 4.7.5As far as I know, this version of WP has the Rest Api embedded. In fact I managed to send a GET request without any problem.
Problem is making POST/DELETE requests, that need an authentication to be processed.I read a lot about it, but unfortunately everybody talks about previous versions of WP and says that I need a plugin (that’s not needed… I know).
I started with Basic Authentication, using Google Chrome Postmaster (to be sure that the request id formally correct), sending a string base64 encoded, containing “user:password” couple.
Server returns a string like “401 – user cannot create”.
Off course I’m using ad admin user with full privileges!I tried to modify my .htaccess, and I followed many other guides and tricks. No way! ??
Seems like version 4.7.5 of WP does not allow Basic Authentication.I also tried to make te same call via Ajax… same result!
Is there anybody here, that faced the same issue?
Thanks
- The topic ‘Basic Autentication with WP REST API 2’ is closed to new replies.