【发布时间】:2021-04-10 09:42:39
【问题描述】:
在 chrome 中,基于此选项允许在 aspx 页面中重定向时存在问题
【问题讨论】:
标签: html google-chrome firefox x-frame-options
在 chrome 中,基于此选项允许在 aspx 页面中重定向时存在问题
【问题讨论】:
标签: html google-chrome firefox x-frame-options
ALLOW-FROM 一般不太支持:https://caniuse.com/?search=allow-from
好消息是您可以设置适用于 IE11 的 X-Frame-Options ALLOW-FROM 并设置适用于所有其他设备的 Content-Security-Policy frame-ancestors 指令。设置 frame-ancestors 后,X-Frame-Options 将被忽略,因此您不会收到该错误消息。
【讨论】: