Select the /users
resource.
Click Enable CORS
.
In the Enable CORS
page - CORS Settings
section:
For Access-Control-Allow-Methods
, select GET
and POST
.
Click Save
.
Click Details
in the Successfully enabled CORS
notification, you will see that API Gateway has:
Created OPTIONS
method …
Added Access-Control-Allow-Origin
to the GET
/POST
method: