
Answer-first summary for fast verification
Answer: Configure CORS on the bucket B that is hosting the web fonts to allow Bucket A origin to make the requests
Configure CORS on the bucket B that is hosting the web fonts to allow Bucket A origin to make the requests 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. 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 <CORSRule> in <CORSConfiguration> for bucket B to allow access from the S3 website origin hosted on bucket A.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
No comments yet.
A digital marketing company operates its website using an Amazon S3 bucket, referred to as Bucket A, where all the website's content is stored. The development team has identified an issue: the web fonts required for the proper display of the website are hosted on a different Amazon S3 bucket, known as Bucket B, and these fonts are failing to load on the website.
What corrective action can the development team take to resolve the issue of the web fonts not loading from S3 Bucket B? Select the most appropriate solution from the options below.
A
Enable versioning on both the buckets to facilitate correct functioning of the website
B
Configure CORS on the bucket B that is hosting the web fonts to allow Bucket A origin to make the requests
C
Update bucket policies on both bucket A and bucket B to allow successful loading of the web fonts on the website
D
Configure CORS on the bucket A that is hosting the website to allow any origin to respond to requests