Skip to content

Instantly share code, notes, and snippets.

@tjmcewan
Created October 27, 2015 01:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tjmcewan/acf5eb29a0c1732dffdb to your computer and use it in GitHub Desktop.
Save tjmcewan/acf5eb29a0c1732dffdb to your computer and use it in GitHub Desktop.
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