• Resolved scottalanmyers

    (@scottalanmyers)


    Hello,

    Is there any way to whitelist Gravity Forms Rest API endpoints? Many apps connect to Gravity Forms via API and access is blocked by Content Control. The access points (URIs) are https://mysite.com/gravityformsapi/ for version 1, and https://mysite.com/wp-jason/gf/v2/ for version 2. Is there any way I can allow public access to these URIs (i.e. including all subdirs), while still blocking other content based on user role?

    Please let me know,
    Scott

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Kim L

    (@kimmyx)

    Hi @scottalanmyers,

    Apologies for the delay.

    We’ll forward your question to the development team about whitelisting some endpoints from Gravity Forms. We’ll let you know once we receive feedback!

    Thread Starter scottalanmyers

    (@scottalanmyers)

    Thanks, Kim!

    Plugin Author Daniel Iser

    (@danieliser)

    @scottalanmyers – Your rules must match that endpoint url somehow. For example maybe you chose “Is A Page” and that is actually a page pretending to be an endpoint. Not sure how its set up exactly, but if it was actually using the normal API endpoint mechanisms built into WP, our actions/filters would not even run to check permissions.

    So they must be using a page or similar to represent that url, thus resulting in weirdness if you don’t account for it in your targeting rules.

    It might be a question that requires asking them how theirs works in the context of you need to target rules to not match it.

    Hope that helps.

    Thread Starter scottalanmyers

    (@scottalanmyers)

    Thanks. I was using a plugin that only worked with v1 of Gravity Forms’ API. V1 does indeed emulate a page. V2 uses WP’s rest API. Updating to v2 fixed the problem. Sorry to waste your time.

    Thanks Again,
    Scott

    Plugin Support Kim L

    (@kimmyx)

    Hi @scottalanmyers,

    Thanks for the update!

    We’ll now mark this thread as resolved.

    Feel free to create a new thread if you have other questions.

    Thanks!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘How to Whitelist Gravity Forms Rest API?’ is closed to new replies.