• Resolved nadgepress

    (@nadgepress)


    Hello.

    I need to access the ‘users’ endpoint from the WP Rest Api to use in my React App (via Axios).

    If I just paste the URL in the browser address field the information displays correctly.

    If I try and access it via POSTMAN or my localhost React App I get “Request failed with status code 403 (Forbidden).

    Note:

    • There are no security plugins on the site
    • The only plugins I’m using are ACF Pro, ACF to Rest API and
    • Custom Post Type UI, but
    • I disabled all three of them to test POSTMAN and I still got a 403.

    Has anyone else had this problem? Do you know what could be causing it?

    Thanks!

    • This topic was modified 5 years, 1 month ago by nadgepress.
    • This topic was modified 5 years, 1 month ago by nadgepress. Reason: Anonymity
    • This topic was modified 5 years, 1 month ago by nadgepress.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    I need to access the ‘users’ endpoint from the WP Rest Api to use in my React App (via Axios).

    Just the user list or information that needs to be authenticated before you can?

    Edit: If you mean things that need authentication then you’ll need an auth plugin.

    Thread Starter nadgepress

    (@nadgepress)

    Just the users name :

    "name":"restapi@test"

    Thread Starter nadgepress

    (@nadgepress)

    Turns out it was something on my server:

    “This was hitting an outdated modsec rule in the firewall, we’ve whitelisted the rule for your account. Please let us know if you are still seeing the issue.”

    All good now ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘WP Rest Api – ‘users’ endpoint returns 403 error’ is closed to new replies.