- Simply add the new
Globals
section as below. You can change*
to appropriate request Url.
{
"AWSTemplateFormatVersion" : "2010-09-09",
"Transform" : "AWS::Serverless-2016-10-31",
"Description" : "An AWS Serverless API Application",
"Globals" : {
"Api" : {
"Cors" : {
"AllowMethods": "'*'",
"AllowHeaders": "'*'",
"AllowOrigin": "'*'"
}
}
}
....