[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?
