Enable CORS for API Gateway in Cloudformation template

0 votes

I'm creating AWS Cloudformation template for my environment and I can't find a way to enable CORS for API Gateway method.

I can configure it using AWS console (here is the official doc), but how can I do it in the Cloudformation template?

Oct 9, 2018 in AWS by eatcodesleeprepeat
• 4,710 points
• 10,099 views
I tried this code snippet. but it did not work. CFN was not able to recognise many of options given for OPTION method