• Resolved bomadsen

    (@bomadsen)


    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?

Viewing 1 replies (of 1 total)
  • Thread Starter bomadsen

    (@bomadsen)

    Found it, “Disable WordPress application passwords” is apparently disabled by default. Enabling them made everything work again.

Viewing 1 replies (of 1 total)

The topic ‘REST endpoint failing’ is closed to new replies.