在做网页授权token的时候,参数需要通过header头传递,但是在参数声明的时候包含下换线"_"(如:req_auth_token),服务器使用nginx转发请求,导致后台获取参数值为null。
解决:在header里不要用 “_” 下划线,可以用驼峰命名或者其他的符号或中划线代替,nginx默认忽略掉下划线。
转载自:https://blog.csdn.net/qq_39535807/article/details/106995766
https://blog.csdn.net/qq_16613311/article/details/110821944