【问题标题】:Invalid 'X-Frame-Options' header encountered when loading 'allow-from https is not a recognized directive. The header will be ignored加载“allow-from https”时遇到无效的“X-Frame-Options”标头不是可识别的指令。标题将被忽略
【发布时间】:2021-04-10 09:42:39
【问题描述】:

在 chrome 中,基于此选项允许在 aspx 页面中重定向时存在问题

【问题讨论】:

    标签: html google-chrome firefox x-frame-options


    【解决方案1】:

    ALLOW-FROM 一般不太支持:https://caniuse.com/?search=allow-from

    好消息是您可以设置适用于 IE11 的 X-Frame-Options ALLOW-FROM 并设置适用于所有其他设备的 Content-Security-Policy frame-ancestors 指令。设置 frame-ancestors 后,X-Frame-Options 将被忽略,因此您不会收到该错误消息。

    【讨论】:

      猜你喜欢
      • 2018-05-23
      • 2013-04-15
      • 1970-01-01
      • 2017-11-30
      • 1970-01-01
      • 2012-04-29
      • 2016-12-09
      • 2019-03-25
      • 2018-02-02
      相关资源
      最近更新 更多