我使用的是HTML5下载属性,允许用户从S3下载的视频文件:什么S3 cors配置应该用于Firefox html5下载属性?
<a href="https://mybucket.s3.amazonaws.com/video.mp4" download="video.mp4">Download</a>
这工作完全在Chrome和IE浏览器。从下面的问题,据我所知,Firefox的希望CORS启用,允许下载属性进行跨领域产地:
我已经使用以下方法使我的S3存储CORS:
http://docs.aws.amazon.com/AmazonS3/latest/user-guide/add-cors-configuration.html
这是我CORS政策:
<CORSConfiguration>
<CORSRule>
<AllowedOrigin>*</AllowedOrigin>
<AllowedMethod>GET</AllowedMethod>
<MaxAgeSeconds>3000</MaxAgeSeconds>
<AllowedHeader>Authorization</AllowedHeader>
</CORSRule>
</CORSConfiguration>
火狐仍然没有不想下载视频。任何帮助,提示或建议将不胜感激。谢谢。
你得到了什么错误?请分享一个屏幕截图或复制并粘贴这些错误。 – Kannaiyan
当我点击使用Firefox的下载链接时,mp4视频在新标签中打开而不是下载。 – boblapointe