[英]Does X-Frame-options works for local files too?
I load an html file ("file://...") in a web browser: in this file there's an <iframe>
. 我在网络浏览器中加载了一个html文件(“ file:// ...”):在该文件中有一个
<iframe>
。 Inside this iframe, I must load some remote content. 在此iframe中,我必须加载一些远程内容。 I know the content I will load is protected by the
X-Frame-Options
HTTP response header, that can be used to indicate whether or not a browser should be allowed to render a page in a <frame>
, <iframe>
or <object>
. 我知道要加载的内容受
X-Frame-Options
HTTP响应标头保护,该标头可用于指示是否应允许浏览器在<frame>
, <iframe>
或<object>
呈现页面<object>
。
The question is simple: will the X-Frame-Options HTTP header work even if I load my page locally as a file? 问题很简单:即使我将页面作为文件本地加载,X-Frame-Options HTTP标头也能正常工作吗?
看来一切正常,我做了一点测试,然后我忘记了这个问题
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.