Csaki95 opened a new issue #20110:
URL: https://github.com/apache/airflow/issues/20110


   ### Apache Airflow version
   
   2.2.2 (latest released)
   
   ### What happened
   
   To fix CORS problem added the 
[access_control_allow_headers](https://airflow.apache.org/docs/apache-airflow/stable/configurations-ref.html#access-control-allow-headers),
 
[access_control_allow_methods](https://airflow.apache.org/docs/apache-airflow/stable/configurations-ref.html#access-control-allow-methods),
 
[access_control_allow_origins](https://airflow.apache.org/docs/apache-airflow/stable/configurations-ref.html#access-control-allow-origins)
 variables to the 2.2.2 docker-compose file provided in documentation. Both 
header, and methods returns with the correct value, but origins never does.
   
   ### What you expected to happen
   
   The CORS response returning with provided origin header value.
   
   ### How to reproduce
   
   Download the latest docker-compose from documentation add the following 
lines:
   `AIRFLOW__API__ACCESS_CONTROL_ALLOW_HEADERS: 'content-type, origin, 
authorization, accept'`
   `AIRFLOW__API__ACCESS_CONTROL_ALLOW_METHODS: 'GET, POST, OPTIONS, DELETE'`
   `AIRFLOW__API__ACCESS_CONTROL_ALLOW_ORIGINS: '*'`
   
   run and call with a CORS preflight
   
   ### Operating System
   
   Windows 11
   
   ### Versions of Apache Airflow Providers
   
   _No response_
   
   ### Deployment
   
   Docker-Compose
   
   ### Deployment details
   
   _No response_
   
   ### Anything else
   
   It's repeatable regardless of ORIGINS value. There was a name change on this 
variable that's possibly not handled.
   On 2.1.4 the same works without problems.
   
   ### Are you willing to submit PR?
   
   - [ ] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to