Is it possible to have a wildcard sub-domain for the CORS headers in AWS Api Gateway?
E.g. (Mock Integration excerpt)
"ResponseParameters":{
"method.response.header.Access-Control-Allow-Origin": "'http:\/\/*.example.com'",
"method.response.header.Access-Control-Allow-Headers": "'Content-Type, X-Amz-Date, Authorization, X-Api-Key, X-Amz-Security-Token'",
"method.response.header.Access-Control-Allow-Methods": "'GET', 'OPTIONS'"
}
Currently, I'm getting the error saying that CORS header does not match with what I have in Access-Control-Allow-Origin.