Amazon S3 permissions by the domain

守給你的承諾、 提交于 2019-12-24 11:23:09

问题


The scenario:

  • Amazon S3 folder with private files
  • Goal: display videos on a HTML5 player, on a specific domain, without turning these files public (similar to vimeo allowing to embed a video only on a domain)

I already tried to change the bucket policy but without success!


回答1:


  1. You'll want to set these files to private.

  2. You'll want to use pre-signed URLs to get the correct authentication token that is required for you to view the files after they're set to private.

  3. If your player is web-based, you'll probably want to enable a CORS configuration.



来源:https://stackoverflow.com/questions/13041219/amazon-s3-permissions-by-the-domain

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!