#Yetzederixx - Validate Return or Refresh URL

1 messages ยท Page 1 of 1 (latest)

cold heart
spark spindle
#

This in particular is for express account onboarding

cold heart
#

Hi ๐Ÿ‘‹

neat nymph
#

Hey there ๐Ÿ‘‹ I believe there is (to an extent) bear with me a moment while I try to find the documentation that talks about it

spark spindle
#

It doesn't have to be super duper secure, just something to ease my paranoia of open endpoints

neat nymph
#

Ah, the initial approach I was thinking of was for the older onboarding flow. While not foolproof, you can check the referrer header that is provided on the request. When I tested coming from the Express onboarding flow just now, that header had a value of https://connect.stripe.com/

spark spindle
#

Cool, thanks

neat nymph
#

You can also append unique query params to the end of your return URL and ignore requests that don't have those params or invalid values for them.

spark spindle
#

True, I'm already doing that so I can do some callback shenanigans, thanks again for your help.