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).

    alt text

  • 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`