Closed ve3 closed 2 years ago
Example URL: https://mydomain.example/wordpress/wp-json/wp/v2/users?context=edit
Main header
Host: mydomain.example
With Basic auth username: admin password: oxDT EoQg 09BX k7lS e98E SFA7
The result on target URL is 401.
Without Basic auth but manual included Authorization header.
Authorization
Authorization: Basic YWRtaW46b3hEVCBFb1FnIDA5QlggazdsUyBlOThFIFNGQTc=
The result on target URL is still 401.
The different is I tested these same values on Postman and it worked! (status 200) It is not working only on Rested Client.
I see it because cookie that is not exclude before send request.
Example URL: https://mydomain.example/wordpress/wp-json/wp/v2/users?context=edit
Main header
With Basic auth username: admin password: oxDT EoQg 09BX k7lS e98E SFA7
The result on target URL is 401.
Without Basic auth but manual included
Authorization
header.The result on target URL is still 401.
The different is I tested these same values on Postman and it worked! (status 200) It is not working only on Rested Client.