
AWS Certified Developer - Associate
Get started today
Ultimate access to all questions.
In your setup, you have video files stored in one S3 bucket and your main static website stored in another S3 bucket. Users can view videos when they access the video URLs directly through their browsers, but these videos do not play when users are browsing the main website.
What is the root cause of this issue?
In your setup, you have video files stored in one S3 bucket and your main static website stored in another S3 bucket. Users can view videos when they access the video URLs directly through their browsers, but these videos do not play when users are browsing the main website.
What is the root cause of this issue?
Explanation:
Enable CORS
Cross-origin resource sharing (CORS) defines a way for client web applications that are loaded in one domain to interact with resources in a different domain. With CORS support, you can build rich client-side web applications with Amazon S3 and selectively allow cross-origin access to your Amazon S3 resources.
To configure your bucket to allow cross-origin requests, you create a CORS configuration, which is an XML document with rules that identify the origins that you will allow to access your bucket, the operations (HTTP methods) that will support for each origin, and other operation-specific information.
For the given use-case, you would create a