January 2019
Intermediate to advanced
490 pages
15h 37m
English
Let's create an API with CORS enabled from scratch. Steps 1 to 4 are the same as we have seen in Chapter 2, Building Serverless REST APIs with API Gateway:
aws apigateway create-rest-api \ --name 'API WITH CORS' \ --region us-east-1 \ --profile admin
aws apigateway get-resources \ --rest-api-id xenqybowjg
aws apigateway create-resource \ --rest-api-id xenqybowjg \ --parent-id p8yd8xde55 \ --path-part greeting
Read now
Unlock full access