You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Sandeep Alla (Jira)" <ji...@apache.org> on 2019/08/19 23:23:00 UTC
[jira] [Commented] (AIRFLOW-4804) Enable CORS (Cross-Origin Request
Sharing) for the API
[ https://issues.apache.org/jira/browse/AIRFLOW-4804?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16910828#comment-16910828 ]
Sandeep Alla commented on AIRFLOW-4804:
---------------------------------------
Hello [~smplisri],
I'm encountering with the same issue as yours. Can you please explain me in-detail on how did you overcome the CORS issue?
> 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
(v8.3.2#803003)