GitHub user SarveshGuptaPythonist added a comment to the discussion: 401 error
while using Airflow API
This way worked for me
I added a .env file and added in docker compose file.
```
env_file:
- .env
```
Like this in all the services like redis and webservers
```
AIRFLOW__API__AUTH_BACKENDS="airflow.api.auth.backend.basic_auth"
```
- added this in the .env file and working good, rebuild and run.
GitHub link:
https://github.com/apache/airflow/discussions/23755#discussioncomment-12188591
----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: [email protected]