Is there any way to access incoming header data in the streamlit site? I think in a flask site, you’d be handling the incoming request, could parse its header, and use that data in your site’s response. I’m wondering if all that data is unavailable to my site because streamlit/tornado(?)/requests is doing the request handling behind the scenes.
I have a streamlit site sitting behind an nginx reverse proxy. For the core of my question I’m not sure if the nginx layer matters but here’s a little info about how I’m using it. I have nginx adding authentication through its basic auth module. My goal is to find out the authenticated user’s username within my site. I believe nginx can forward the username as a field in the header (proxy_set_header REMOTE_USER $remote_user) but from what I can see, streamlit isn’t going to expose a way to read this REMOTE_USER field from the header.