ryanahamilton commented on a change in pull request #14988: URL: https://github.com/apache/airflow/pull/14988#discussion_r600726987
########## File path: airflow/ui/README.md ########## @@ -27,6 +27,25 @@ - [Chakra UI](https://chakra-ui.com/) - a simple, modular and accessible component library that gives you all the building blocks you need to build your React applications. - [React Testing Library](https://testing-library.com/docs/react-testing-library/intro/) - write tests that focus on functionality instead of implementation +## Environment variables + +To communicate with the API you need to adjust some environment variables for the webserver and this UI. + +Be sure to allow CORS headers and set up an auth backend on your Airflow instance. + +``` +export AIRFLOW__API__AUTH_BACKEND=airflow.api.auth.backend.basic_auth +export AIRFLOW__API__ACCESS_CONTROL_ALLOW_HEADERS=* +export AIRFLOW__API__ACCESS_CONTROL_ALLOW_METHODS=* +export AIRFLOW__API__ACCESS_CONTROL_ALLOW_ORIGIN=* Review comment: I know it's only for local dev, but probably better to narrow this: ```suggestion export AIRFLOW__API__ACCESS_CONTROL_ALLOW_ORIGIN=http://127.0.0.1:28080/ ``` -- 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. For queries about this service, please contact Infrastructure at: [email protected]
