【问题标题】:Using X-Frame-Options customHeaders - add multiple uri/domains to the web.config?使用 X-Frame-Options customHeaders - 将多个 uri/域添加到 web.config?
【发布时间】:2015-08-03 19:21:10
【问题描述】:

使用 X-Frame-Options customHeaders - 将多个 uri/domains 添加到 web.config?

。在 web.config 中是否允许使用以下格式附加多个 X-Frame-Options?它有效吗?

【问题讨论】:

    标签: x-frame-options custom-headers


    【解决方案1】:

    不能使用 X-frame-Options,而是应该使用

    <add name="Content-Security-Policy" value="frame-ancestors 'self' yourdomain1.com yourdomain2.com;"/>
    

    【讨论】:

    • rafeeq 感谢更新。但如您所知,CSP 1 和 CSP 2 版本仍然不支持某些浏览器示例:IE、9 + 和 safari
    猜你喜欢
    • 2018-11-01
    • 2012-04-29
    • 2016-12-09
    • 2017-08-02
    • 2018-06-27
    • 2014-10-08
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多