
Answer-first summary for fast verification
Answer: Configure CORS on the central S3 bucket to enable access for the web applications.
The correct answer is C: Create a cross-origin resource sharing (CORS) configuration that allows access to the central S3 bucket and add the CORS configuration to the central S3 bucket. Web browsers implement the same-origin policy which restricts how resources can be fetched from another domain, affecting security. To allow your client-side web applications to load JavaScript files and web fonts from the central S3 bucket, you need to configure CORS on the S3 bucket to permit cross-origin requests. This allows the web applications hosted in different S3 buckets under different domains to access the centralized resources without being blocked by the browser.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
No comments yet.
A company uses Amazon S3 to host a web application accessible via CloudFront. Following a successful launch, they plan to host additional web applications for other subsidiaries, utilizing separate S3 buckets. To streamline resources, common JavaScript and web fonts are centralized in one S3 bucket. The developer encounters browser blocking for these resources during testing. What action should be taken to resolve this issue?
A
Establish access points for the central S3 bucket and assign them to each application's bucket.
B
Implement a bucket policy on the central S3 bucket to permit access.
C
Configure CORS on the central S3 bucket to enable access for the web applications.
D
Integrate a Content-MD5 header into web application requests for message integrity verification on the central S3 bucket.