【问题标题】:Error 404 domain/.well-known/apple-app-site-association错误 404 域/.well-known/apple-app-site-association
【发布时间】:2021-09-13 06:09:51
【问题描述】:

加载我的 apple-app-site-association 时出现 404 错误,我不知道为什么...这是我的文件的样子:

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

该文件位于根目录/.well-known/apple-app-site-association 下。如果我尝试通过路由访问它,我总是会收到 404 错误。

有人知道为什么吗?我会说我缺少一些网络配置,也许吧?

【问题讨论】:

    标签: ios http-status-code-404 ios-universal-links apple-app-site-associate apple-app-site-association


    【解决方案1】:

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

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

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2017-01-13
      • 1970-01-01
      • 1970-01-01
      • 2016-01-06
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多