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