airbasic
V2EX  ›  问与答

nginx 反代时可否删除 response header 里的 Content-Security-Policy 项?

  •  
  •   airbasic · Dec 22, 2014 · 5241 views
    This topic created in 4230 days ago, the information mentioned may be changed or developed.
    反代时返回的 response header 里有CSP,限制了很多域名才能加载js,如何在这个过程中用nginx删除这个header?可以实现吗?
    airbasic
        1
    airbasic  
    OP
       Dec 22, 2014
    GOOGLE了半天已经找到解决方案,也在这记录下,方便一样不知道怎么办的人啦~
    http://wiki.nginx.org/HttpHeadersMoreModule
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   4575 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 00:10 · PVG 08:10 · LAX 17:10 · JFK 20:10
    ♥ Do have faith in what you're doing.