Skip to content

Instantly share code, notes, and snippets.

@tjmcewan
Created Oct 27, 2015
Embed
What would you like to do?
Excerpt from awsm.json that shows CORS setup for an API Gateway endpoint.
"default": {
"statusCode": "200",
"headers": {
"Access-Control-Allow-Origin": {
"type": "string"
}
},
"responseParameters": {
"method.response.header.Access-Control-Allow-Origin": "'http://CORSdomain.com'"
},
"responseModels": {
"application/json": "Empty"
},
"responseTemplates": {
"application/json": ""
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment