Context: I've written a Django app which I have now deployed to Elastic Beanstalk (AWS).
In local development I've been using a custom request header SESSION_TOKEN
which I can then access using request.META.get('HTTP_SESSION_TOKEN')
. In production I'm seeing errors because that header is not accessible (aka it is simply missing in all requests my Django server is seeing).
Additionally my other standard headers are working fine, it is only the custom header that is missing. Note I'm not setting HTTP_AUTHORIZATION
, this is not the same issue as Authorization header missing in django rest_framework, is apache to blame?.
What is going wrong? How can I access custom headers on my backend in production?