Configure CORS for the API Gateway
- Open APIs section of the API Gateway console.
- In the list of the APIs, click on the name of the API (
UsersAPI
).

- You will be redirected to the Resources section of the
UsersAPI
.

With API Gateway, the CORS settings is applied at resource-level, so we need to configure CORS settings for two 2 resources (/users
and users/{usersId}
)
Content
- Configure CORS for /users resource
- Configure CORS for /users/{userId} resource
- Re-deploy `UsersAPI`