You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CORS origin could not be enabled with airflow.cfg. We tried to trigger DAGs from Angular UI
Angular version: 12+
Node.js version: 16+
Access to XMLHttpRequest at 'http://airflow.com/api/v1/dags/Samples/dagRuns' from origin 'http://angularui.com:4200' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.
Apache Airflow version
2.0.0
Operating System
Ubuntu 18.04.5 LTS
Versions of Apache Airflow Providers
No response
Deployment
Virtualenv installation
Deployment details
No response
What happened
CORS origin could not be enabled with airflow.cfg. We tried to trigger DAGs from Angular UI
Angular version: 12+
Node.js version: 16+
Access to XMLHttpRequest at 'http://airflow.com/api/v1/dags/Samples/dagRuns' from origin 'http://angularui.com:4200' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.
example:
[API]
access_control_allow_headers = *
access_control_allow_methods = *
access_control_allow_origin = *
We tried following the docs, we restarted the server always. None of them work.
What you expected to happen
We expected to call an Airflow API and trigger DAGs from angular UI. But CORS issue blocked call to the Airflow API.
How to reproduce
Anything else
No response
Are you willing to submit PR?
Code of Conduct
The text was updated successfully, but these errors were encountered: