REST endpoint failing | WordPress.org

[ad_1]

Hi,

When I activate wordfence my REST endpoints starts to fail with 401 rest_forbidden. I have debugged it down to wp_get_current_user() returning user 0 with empty data.
Without wordfence it works for both basic and OAuth authentication, but with wordfence activated none of them works. I have also tried to whitelist the IP address of the calling server, but it still doesn’t work.

Any ideas what is wrong?

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer