Apple Pay Verification File & the Public Folder

To get Apple Pay verified, you need to add a file to the path {domain}/.well-known/apple-developer-merchantid-domain-association

Typically this isn’t an issue but because there is no file type (or at least I think that’s the issue as files with extensions load fine), the file isn’t loaded when browsed to it and Apple Pay is not verified. Has anyone else encountered an issue like this? I don’t see any alternative verification methods and they don’t give you the option of giving the file a file type.

@stolinski, have you thought about using WebApp and sending back the response yourself (loading it from Assets)?

WebApp.connectHandlers.use(function(req, res, next) {

An example of usage can be found in the AppCache module (from recent memory, but I am sure other places in Meteor core use it) and I recall FlowRouter also used WebApp.

1 Like

I had not. I’ll check it out. Thanks!

@stolinski, did it work?

:100: It worked perfectly, thank you.

Excellent - funny how the world turns around, I started with Meteor thanks to your videos :slight_smile:
Which I believe are among the best (if not the best) ones for beginners.