[英]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.