为什么iframe被认为是危险的并且存在安全风险? [英] Why are iframes considered dangerous and a security risk?

查看:1166
本文介绍了为什么iframe被认为是危险的并且存在安全风险?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

为什么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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆