为什么iframe被认为是危险的并且存在安全风险? [英] Why are iframes considered dangerous and a security risk?
本文介绍了为什么iframe被认为是危险的并且存在安全风险?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
iframe本身没有任何问题。如果您控制iframe的内容,那么它们非常安全。
Why are iframes considered dangerous and a security risk? Can someone describe an example of a case where it can be used maliciously?
解决方案
As soon as you're displaying content from another domain, you're basically trusting that domain not to serve-up malware.
There's nothing wrong with iframes per se. If you control the content of the iframe, they're perfectly safe.
这篇关于为什么iframe被认为是危险的并且存在安全风险?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文