0

I am getting a 404 error when loading my apple-app-site-association and I have no idea why... Here's how my file looks like:

{
  "applinks": {
    "apps": [],
    "details": [
      {
        "appIDs": [ "ABCDE12345.com.example.app" ],
        "components": [
          {
            "/": "*",
            "comment": "Matches any URL"
          }
        ]
      },
      {
        "appID": "ABCDE12345.com.example.app",
        "paths": [ "*" ]
      }
    ]
  }
}

The file is located under root /.well-known/apple-app-site-association. If I try to access to it through route, I'm always getting a 404 error.

enter image description here

Does anyone know why? I'd say I'm missing some web configuration, maybe?

4

1 回答 1

0

我发现我缺少没有任何扩展名的文件的类型。

  <mimeMap fileExtension="." mimeType="application/json" />

参考:https ://medium.com/@barsh/my-first-date-with-ios-universal-links-90dfabc88bb8

于 2021-07-01T07:55:25.573 回答