[
https://issues.apache.org/jira/browse/AIRFLOW-4804?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16868356#comment-16868356
]
Kamil Bregula commented on AIRFLOW-4804:
----------------------------------------
[https://airflow.apache.org/howto/run-behind-proxy.html]
I recommend running Airflow together with Nginx and add the appropriate header
in Nginx
> Enable CORS (Cross-Origin Request Sharing) for the API
> ------------------------------------------------------
>
> Key: AIRFLOW-4804
> URL: https://issues.apache.org/jira/browse/AIRFLOW-4804
> Project: Apache Airflow
> Issue Type: Bug
> Components: api
> Affects Versions: 1.10.3
> Reporter: Srinivasa kalyan Sozhavaram
> Priority: Minor
> Original Estimate: 1h
> Remaining Estimate: 1h
>
> Ability needed to call the Airflow API that are hosted in a server with SSL
> enabled. We get an error when the API is being integrated to a custom-built
> portal on HTTP:
>
> {quote} *Access to XMLHttpRequest at
> 'https://<airflow_DNS>/api/experimental/dags/<dag_id>/dag_runs' from origin
> 'http://localhost: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.*
> {quote}
>
> Header was set with Access-Control-Allow-Origin as "***"
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)