› NGINX
› NGINX Trac
› 3rd Party Modules
› Security Advisories
› CHANGES
› OpenResty
› ngx_lua
› Tengine
在线学习资源
› NGINX 开发从入门到精通
NGINX Modules
› ngx_echo
chenglu
V2EX  ›  NGINX

如何可以在nginx反向代理的情况下过滤掉源站的cookie?

  •  
  •   chenglu · Jun 10, 2013 · 7890 views
    This topic created in 4882 days ago, the information mentioned may be changed or developed.
    新手一个啊,高手勿喷哈。

    比如我的站是 a.com 要代理 b.com 但是 b.com 会在返回的response里写入 a=1,b=2 类似的cookie,如何让用户在访问 a.com 的时候,不会被写入源站所返回的cookie呐?

    90度鞠躬,拜谢各位大大…
    1 replies  •  1970-01-01 08:00:00 +08:00
    lululau
        1
    lululau  
       Jun 10, 2013   ❤️ 2
    localtion xxx {
    ........
    proxy_hide_header Set-Cookie;
    ........
    }
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   4662 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 03:54 · PVG 11:54 · LAX 20:54 · JFK 23:54
    ♥ Do have faith in what you're doing.