aws / amazon-mwaa-docker-images

Apache License 2.0
27 stars 11 forks source link

Add Env. Variables to set CORS config. #120

Closed NikhilRaverkar closed 3 months ago

NikhilRaverkar commented 3 months ago

Issue #, if available: This PR adds an environment variable to allow set CORS config. CORS will be enabled by default unless MWAAAPIALLOWED_HEADERS, MWAAAPIALLOWED_METHODS MWAAAPIALLOWED_ORIGINS are explicitly set. Description of changes: Verified the change by setting the AIRFLOWAPIACCESS_CONTROL_ALLOW_HEADERS, AIRFLOWAPIACCESS_CONTROL_ALLOW_METHODS and AIRFLOWAPIACCESS_CONTROL_ALLOW_ORIGINS to *

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.