Configure CORS for /users resource

  1. Select the /users resource.
  2. Click Enable CORS.

alt text

  1. In the Enable CORS page - CORS Settings section:

    • For Access-Control-Allow-Methods, select GET and POST.
    • Click Save.

alt text

  1. 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:

      • Method Response Header
      • Integration Response Header Mapping

alt text