Universal link "apple-app-site-association" in reactJS not working

1.7k views Asked by At

I am working on a reactJS web app and need to include universal links through "apple-app-site-association" file.

I've followed the steps:

(1) Create "apple-app-site-association" file with no extension (2) Include the file inside public folder (not src) (3) The route is --> /.well-known/apple-app-site-association)

However instead of showing the json when I link to the route, the file is directly downloaded from the web.

I think it's due to file content-type problem. Since "apple-app-site-association" file must have no extension, the server is not presenting it as application/json and is directly downladed.

Can you guys help with this?

Thank you!

0

There are 0 answers