Configure CORS for the API Gateway

  1. Open APIs section of the API Gateway console.
  2. In the list of the APIs, click on the name of the API (UsersAPI).

alt text

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

alt text

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

  1. Configure CORS for /users resource
  2. Configure CORS for /users/{userId} resource
  3. Re-deploy `UsersAPI`