bluescharp
V2EX  ›  问与答

Nginx 反代,怎么修改 header?

  •  
  •   bluescharp · Feb 15, 2016 · 4329 views
    This topic created in 3783 days ago, the information mentioned may be changed or developed.

    用 ngx_http_proxy_module 做反代的时候, Headers 里有源站点的东西,想直接删除或替换掉,不知道怎么弄。比如
    access-control-allow-origin
    content-security-policy
    Set-Cookie

    Andy1999
        1
    Andy1999  
       Feb 15, 2016
    proxy_ignore_headers access-control-allow-origin content-security-policy Set-Cookie
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2676 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 12:26 · PVG 20:26 · LAX 05:26 · JFK 08:26
    ♥ Do have faith in what you're doing.