Cookie Authentiction with Angularjs
-
I am trying to allow logged in users to read private post through the api issuing the simple api call /wp-json/posts/1 (which is a private post).
However even when I am logged in with admin rights I still get a 401 unauthorised error.
The documentation states that “WP API includes a technique called nonces to avoid CSRF issues. This prevents other sites from forcing you to perform actions without explicitly intending to do so. This requires slightly special handling for the API. For developers using the built-in Javascript API, this is handled automatically for you.”
Is what I am trying to do possible with this authentication?
The topic ‘Cookie Authentiction with Angularjs’ is closed to new replies.