Universal link - The domain has some validation issue

后端 未结 2 1237
野趣味
野趣味 2021-01-04 18:29

Im working on universal link to open the application while tap the url. I am using https server and done all the steps from apple (Apple Doc). But the apple universal link v

2条回答
  •  半阙折子戏
    2021-01-04 18:54

    I just solved this issue myself. I had to logon to my server and go to the directory where the apple-app-site-association file was. In this directory, I had a .htaccess file which I modified to include the following lines:

    
    ForceType 'application/json'
    
    

    After doing this, the validation service stopped complaining about the Content-Type.

    NOTES:

    • If you don't have a .htaccess file, you can just create one.
    • I presume the .htaccess file should be in the root of your site directory (which is where you would most likely have placed your apple-app-site-association file.

提交回复
热议问题