bluescharp
V2EX  ›  问与答

Nginx 反代,怎么修改 header?

  •  
  •   bluescharp · Feb 15, 2016 · 4334 views
    This topic created in 3787 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   ·   1511 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 16:36 · PVG 00:36 · LAX 09:36 · JFK 12:36
    ♥ Do have faith in what you're doing.