Nginx 代理时herder参数无法传递
nginx默认request的header的那么中包含’_’时,会自动忽略掉。
对header有所限制,下划线(_)不支持。
方法一:
不用下划线
把下划线_改成其他的,如access_token改成access-token
方法二:
从根本解除nginx的限制
解决方法是:在nginx里的nginx.conf配置文件中的http部分中添加如下配置:
underscores_in_headers on;
(默认 underscores_in_headers 为off)