ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 378 - DVA-C01 discussion

Report
Export

A developer implemented a static website hosted in Amazon S3 that makes web service requests hosted in Amazon API Gateway AWS Lambd a. 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
Answers
A.
Enable cross-origin resource sharing (CORS) on the S3 bucket
B.
Enable cross-origin resource sharing (CORS) for the method in API Gateway
Answers
B.
Enable cross-origin resource sharing (CORS) for the method in API Gateway
C.
Add the Access-Control-Request-Method header to the request
Answers
C.
Add the Access-Control-Request-Method header to the request
D.
Add the Access-Control-Request-Headers header to the request
Answers
D.
Add the Access-Control-Request-Headers header to the request
Suggested answer: B

Explanation:

https://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-cors-console.html

asked 16/09/2024
eswar raj
33 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first