简体   繁体   中英

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> . Inside this iframe, I must load some remote content. 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> .

The question is simple: will the X-Frame-Options HTTP header work even if I load my page locally as a file?

看来一切正常,我做了一点测试,然后我忘记了这个问题

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM