bluescharp
V2EX  ›  问与答

Nginx 反代,怎么修改 header?

  •  
  •   bluescharp · Feb 15, 2016 · 4331 views
    This topic created in 3784 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   ·   870 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 20:53 · PVG 04:53 · LAX 13:53 · JFK 16:53
    ♥ Do have faith in what you're doing.