提问人:Sinder 提问时间:12/24/2020 最后编辑:epascarelloSinder 更新时间:12/24/2020 访问量:45
parent.location 可以信任吗?
Can parent.location be trusted?
问:
这个问题涉及在浏览器(客户端)中运行的 javascript 代码。
假设我知道我在 iframe 中,我可以信任还是实际上是我的 iframe 父级的真实 url?window.parent.location
document.referrer
换句话说,假设用户的浏览器正确地遵循了CORS规范,是否可以以这样的方式构建我的页面?evil.com
window.parent.location
document.referrer
evil.com
答: 暂无答案
评论