Closed distroid closed 9 years ago
This completely breaks unauthenticated access, and isn't how the authentication is meant to work. :)
The plugin should work fine with v2. In your browser, try accessing http://user:pass@example.com/wp-json/
to explicitly send authentication. If that doesn't work, try using an API client instead.
Thanks!
But I still can get API result without providing auth info. Enter link like http://example.com/wp-json/ in your browser window. You will get json responce without asking authentication data (user\password).
That's correct, and intended behaviour. All of the data you can see there is already available on sites, we're just making it a bit easier to access.
1) Basic auth doesn't work by direct url in browser (try url like http://wp.lo/wp-json in browser) 2) Basic auth doesn't work for wp api v2 (https://github.com/WP-API/WP-API) in cases: