-
Notifications
You must be signed in to change notification settings - Fork 16.4k
Closed
Labels
kind:featureFeature RequestsFeature Requests
Description
Description
I would like to see a config in the api section in order to add allowed hosts for making http request and solve cross origin problem. Now, if a make an async request from browser a cross origin error occurs.
Use case / motivation
If I'm writing a dashboard for a end-user who want to see the current dag status I could create a dag with some graphical js library. The dag is created fetching webserver api in background. A possible implementation could be:
[api]
enable_experimental_api = False
auth_backend = airflow.api.auth.backend.basic_auth
allowed_hosts = ['myDomain1.com', 'myDomain2.org']
Are you willing to submit a PR?
No
Related Issues
No
Metadata
Metadata
Assignees
Labels
kind:featureFeature RequestsFeature Requests