[[AWS Lambda function]]のリターンで[[CORS]]関連ヘッダを返却するようにする方法。`handler`の`Headers`に以下のような[[レスポンスヘッダー]]を指定して返す。
```go
func CreateCommonHeaders() map[string]string {
return map[string]string{
"Content-Type": "application/json",
"Access-Control-Allow-Origin": "*",
"Access-Control-Allow-Methods": "GET,OPTIONS,PUT,POST,DELETE",
"Access-Control-Allow-Headers": "Origin,Authorization,Accept,X-Requested-With,Content-Type,X-Amz-Date,Authorization,X-Api-Key,X-Amz-Security-Token'",
"Access-Control-Allow-Credential": "true",
}
}
```