How do I deploy Dash to Elastic Beanstalk with Basic Authentication


I have followed the documentation on setting up authentication for Dash and works correctly locally. However when I tried to deploy the Dash app to AWS by Elastic Beanstalk, it won’t accept the username and password pair. I have searched on line and it seems to be related to the fact that AWS removes the Authentication Header from the HTTP request.

People suggests to include a file named python.config

command: ‘echo “WSGIPassAuthorization On” >> …/wsgi.conf’

to .elasticbeanstalk folder.

I have tried that without much luck.

What should I do ?