#Srujan

1 messages · Page 1 of 1 (latest)

lavish scaffoldBOT
storm kindle
#

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?

tawny summit
#

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

storm kindle
#

I just return the contents of the file in an HTTP response with a content_type='text/plain'

tawny summit
#

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

storm kindle
#

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.

tawny summit
#

ah i guess I can put it in the index.html file as a link?