A Developer implemented a static website hosted in Amazon S3 that makes web service requests hosted in Amazon API Gateway and AWS Lambda. The site is showing an error that reads: "No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'null' is therefore not allowed access." What should the Developer do to resolve this issue?
A) Enable cross-origin resource sharing (CORS) on the S3 bucket.
B) Enable cross-origin resource sharing (CORS) for the method in API Gateway
C) Add the Access-Control-Request-Method header to the request
D) Add the Access-Control-Request-Headers header to the request
Correct Answer:
Verified
Q111: A company is developing an application that
Q112: A Developer wants to insert a record
Q113: A Development team wants to immediately build
Q114: A Developer has discovered that an application
Q115: A Developer has written an Amazon Kinesis
Q117: A Developer has built an application running
Q118: A Developer is building an application that
Q119: An application ingests a large number of
Q120: A Developer is publishing critical log data
Q121: A developer needs to manage AWS infrastructure
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents