I’m getting a 401 while calling the wp-json endpoint via ajax June 8, 2022 by Tarik Billa I had accidentally created a POST rather than a GET. Obviously, you need credentials if you post.