0 votes
in AWS by

You have developed a Web-based application that makes calls to backend API. Which of the following headers are required by Web browsers to be set up in each API method which has CORS enabled? (Select TWO)

1 Answer

0 votes
by

Correct Answer - A, E.

To support CORS, API resource needs to implement an OPTIONS method to respond to the OPTIONS preflight request with the following headers.

Access-Control-Allow-Headers.

Access-Control-Allow-Origin.

Access-Control-Allow-Methods.

Option B, C & Dare incorrect as both these headers are not required to be included as a part of the OPTIONS method.

...