DVA-C01-LATEST practice question 8 of 35

A developer implemented a static website hosted in amazon s3 that makes web service requests in amazon api gateway and aws lambda. The site is showing an error that reads. ''No 'access control-allow-origin'header' header is present on the requested resource. Origin 'null is therefore not allowed access '' What should the developer do to resolve this issue?

Full set: 608 questions
Answer options
A: Enable cross-origin resource sharing (cors) on the s3 bucket Correct answer
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 inquest headers header to the request
Correct Answer:
A. Enable cross-origin resource sharing (cors) on the s3 bucket
Scroll to Top