简体   繁体   English

将 apple-app-site-association 文件与 azure static-web-app 一起使用

[英]Using the apple-app-site-association file with an azure static-web-app

I am using an Azure static web app to host a website.我正在使用 Azure 静态 Web 应用程序来托管网站。 I want to host the apple file on the backend for deep linking.我想在后端托管苹果文件以进行深度链接。 I am running into the problem however that the apple documentation requires there is no extension on the file when it is uploaded.我遇到了这个问题,但是苹果文档要求上传文件时没有扩展名。 I have tried to override the content-type / mime methods to "application/json" via route rules, general headers, and extension rules.我试图通过路由规则、通用标头和扩展规则将内容类型/mime 方法覆盖为“application/json”。 Nothing seems to change this file from being retrieved with the content type "application/octet-stream".使用内容类型“application/octet-stream”检索此文件似乎没有任何改变。 Any guidance on how to get these two implementations to work together would be amazing.任何关于如何让这两种实现协同工作的指导都会令人惊叹。 Thank you in advance.先感谢您。

Edit the file metadata to set the content type.编辑文件元数据以设置内容类型。

Are you using CloudFront?您在使用 CloudFront 吗? If so, be sure to invalidate the cache for this file.如果是这样,请务必使该文件的缓存无效。

"

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 DeepLinking apple-app-site-association文件是否需要签名? - Does DeepLinking apple-app-site-association file need signing? apple-app-site-association文件格式错误 - The apple-app-site-association file format error 在浏览器中解密apple-app-site-association - Decrypt apple-app-site-association in browser apple-app-site-association 文件不适用于最新更改 - apple-app-site-association file doesnt work with latest changes 如何在第三方域 (mydomain.app.link) 中上传 AASA (apple-app-site-association) 文件 - How to Upload AASA (apple-app-site-association) file in third Party Domain (mydomain.app.link) 你如何指定一个 apple-app-site-association 文件路径来匹配查询字符串? - How do you specify an apple-app-site-association file path to match query strings? 在本地服务器苹果应用站点关联文件进行测试的最简单方法是什么 - What is the simplest way to server apple-app-site-association file locally for testing 当 Vue.js 路由器路径为 /apple-app-site-association 时,如何打开文件 - how do I open a file when Vue.js router path is /apple-app-site-association Apple 的示例 apple-app-site-association appID 中的前缀指的是什么 - What does the prefix in Apple's sample apple-app-site-association appID refer to 我已经在服务器上上传了apple-app-site-association,用于后端服务 - I have uploaded apple-app-site-association on my server, which I use for backend services
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM