由域Amazon S3的权限 [英] Amazon S3 permissions by the domain

查看:124
本文介绍了由域Amazon S3的权限的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

场景:

  • 在亚马逊S3文件夹与私人文件
  • 目标:显示视频上的HTML5播放器,在一个特定的领域,头也不回这些文件公开(类似于到Vimeo允许嵌入仅在域视频)

我已经试图改变水桶政策,但都没有成功!

解决方案
  1. 您会希望这些文件设置为私人。

  2. 您需要使用pre-签署的网址以获得所需,为您查看文件后,它们设置为私有正确的身份验证令牌。

  3. 如果您的播放器是基于Web的,你可能要启用的 CORS配置

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. 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.

这篇关于由域Amazon S3的权限的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆