#Srujan
1 messages · Page 1 of 1 (latest)
Hi 👋
So you are trying to host the Apple Pay domain association file on ngrok?
Do you. have the .well-known/apple-developer-merchantid-domain-association' route added to your ngrok domain to host the file?
Hello! Yes that's what I'm trying to figure out. Not sure how to add the route to the ngrok domain?
Because ngrok will let me serve static files but I'm not sure how to do that while its ported from my local host
Like I guess apple is looking to query that route and have the file served, not just have plain html displayed at that route
I just return the contents of the file in an HTTP response with a content_type='text/plain'
from the react app?
I'm just hosting a frontend app at localhost and forwarding that to the ngrok url
I guess I'm wondering if I need to setup a server that serves up the app and that file...and if there's an easy way to do that
In my test integrations I've always served this content up from a server. I'm not sure how you'd accomplish that with a front-end only app.
However, if you are returning the file contents when Apple hits that URL, I don't see why it wouldn't work: https://stripe.com/docs/apple-pay/web/v2#verify-your-domain-to-go-live
ah i guess I can put it in the index.html file as a link?