nginx在响应request header时候带下划线的需要开启的选项

比如cookie中可能会有一些带下划线的内容,这种情况,就得在前端的nginx里开启这个选项,
underscores_in_headers on;
写在http或者server区域里都可以。

可以参考http://nginx.org/en/docs/http/ngx_http_core_module.html#underscores_in_headers

猜你喜欢

转载自blog.51cto.com/zhukeqiang/2410698
今日推荐