airbasic
V2EX  ›  问与答

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

  •  
  •   airbasic · Dec 22, 2014 · 5148 views
    This topic created in 4184 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   ·   2756 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 22ms · UTC 02:42 · PVG 10:42 · LAX 19:42 · JFK 22:42
    ♥ Do have faith in what you're doing.