问题标签 [apple-app-site-association]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
148 浏览

ios - Apple 在 S3 上的 apple-app-site-association 文件与 CloudFront 分布

我正在尝试通过我的自定义域通过 CloudFront 分发从 S3 提供 apple-app-site-association。

但是当我得到如下路径时,它开始下载而不是显示在浏览器中。

https://mycustomdonain.com/.well-known/apple-app-site-association

我是否需要在 S3 或 CloudFront 级别进行任何设置才能使其正常工作?

注意:该应用程序是在 Angular 中开发的。

谢谢

0 投票
1 回答
38 浏览

apache - .htaccess 跳过 apple-app-site-association 但过滤其他

我有更改扩展名的规则

一切都很好但是这条规则也过滤了苹果应用网站关联

需要跳过 apple-app-site-association 但过滤其他

我尝试在下面添加代码但无济于事

0 投票
0 回答
4 浏览

json - 我的服务器将 apple-app-site-association 作为字符串返回,而其他作为 JSON

我在root和.well-known中上传了apple-app-site-association,当我点击下面的链接时,它以字符串形式返回内容。 https://thenavyland.com/apple-app-site-association

然而,所有其他服务器将此文件作为 JSON 返回,例如 https://www.google.com/apple-app-site-association

https://www.daraz.pk/apple-app-site-association

请指导我应该怎么做,以便我的服务器也将内容作为 JSON 而不是字符串返回。

0 投票
1 回答
30 浏览

reactjs - 在 Gatsbyjs 中的特定 URL 处显示 JSON 文件

我正在尝试将我的 iOS 应用程序链接到 Gatsby 网站,但我找不到如何在我的 Gatsby 网站的特定 URL 中显示以下 JSON 文件

我在我的静态文件夹中添加了 JSON 文件

VsCode 文件夹屏幕截图

我现在希望它显示在这个 URL 上:mydomain.org/.well-known/apple-app-site-association