After days of messing with this, I figured it out just by luck. It was due to my www redirect. I corrected the issue using nginx to serve the file.
If anyone else is having this issue, here is what I did in my server block after the redirect from non www and non HTTP to www and HTTPS. This will serve the file regardless of the root domain redirection.
# Add this location block to serve apple-app-site-association file
location = /.well-known/apple-app-site-association {
default_type application/json;
alias /var/www/yourwebsite.com/public_html/.well-known/apple-app-site-association;
}
Hope this helps others!
Topic:
Privacy & Security
SubTopic:
General
Tags: