【发布时间】:2018-03-21 23:59:57
【问题描述】:
我在 Google 或 StackExchange 的网站上找到了一些关于 HTTPS iframe 的文章,但这些问题都与我的问题不符,因为大多数人都在询问 HTTP 网站中的 HTTPS 框架。
所以我的问题是让我们支持有一个来自 Let's encrypt 的 SSL 问题的域 secureframe.com,并且有一个托管在 Heroku 上的应用程序,域为 secureapp.herokuapp.com,我们在该站点中发送敏感数据,将如果我们在secureframe.com 提交数据,它会生成一个嵌入secureapp.herokuapp.com 网页的iframe,会出现安全问题吗?
或者换句话说,如果我们使用 .htaccess 通配符而不是 REDIRECT 将 secureframe.com 重写为 secureapp.herokuapp.com,是否也会导致安全问题?
详情:
第一种情况:
secureframe.com:
<!DOCTYPE HTML>
<html>
<body>
<iframe src="https://secureapp.herokuapp.com" width="100%" height="100vh" />
</body>
</html>
secureapp.herokuapp.com:
<!DOCTYPE HTML>
<html>
<body>
<form action="/data" method="post">
<b>Security Number:</b>
<br />
<input type="password" name="security number">
</form>
</body>
</html>
【问题讨论】:
标签: .htaccess security iframe https