做登录拦截器时自定义header名为api_header_token,本地不做nginx转发,正常获取头部信息。放到服务器时,nginx转发获取不到。
问题解决,在nginx.conf配置文件http里面加上underscores_in_headers on;nginx默认underscores_in_headers为off;
做登录拦截器时自定义header名为api_header_token,本地不做nginx转发,正常获取头部信息。放到服务器时,nginx转发获取不到。
问题解决,在nginx.conf配置文件http里面加上underscores_in_headers on;nginx默认underscores_in_headers为off;