Although headers with underscore are perfectly valid according to HTTP standards, however NGINX does not support it by default. To enable NGINX to accept headers with underscore, add the following directive within the server block of your NGINX configuration.
underscores_in_headers on;
Validate and reload the configuration after making this change as follows:
nginx -t
service nginx reload