I have a spring boot project which has some Rest APIs in it. I have two custom headers named request_date
and tenant
The issue was with the nginx configuration.
I set the underscores_in_headers on;
for the server and now it doesn't drop the headers with underscore in their names.
The solution suggested by @Karol Dowbecki works as well. When I renamed my header to requestDate
, I was able to read the value successfully.