S
S
SrJ2016-01-16 21:20:50
Nginx
SrJ, 2016-01-16 21:20:50

What blocks access to custom HTTP header (Python+Flask+uwsgi+nginx)?

Hey! Tell me, who knows
There is a web application (Python + Flask + uwsgi + nginx)
The client sends the server in each request a session ID in the HTTP_token header.
I'm on the server, in the request handler I'm trying to read this header
token = request.headers.get('HTTP_token')
But there is no such header.
When I run the application locally (without uwsgi and nginx) everything works.
I can't figure out at what stage the headers are filtered and how can I pass my non-standard header through this filter?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question