Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2019年04月10日 rel='noopener' #50

Open
imzyf opened this issue Apr 10, 2019 · 0 comments
Open

2019年04月10日 rel='noopener' #50

imzyf opened this issue Apr 10, 2019 · 0 comments

Comments

@imzyf
Copy link
Contributor

imzyf commented Apr 10, 2019

http://keenwon.com/1548.html

<a target="_blank" href="http://web.com/">点击</a>

自己的网站上有个跳转到其他网站的链接,如上,跨域。假如 web.com 这个网站上有一串 js 代码:

window.opener.location = 'https://zyf.im';

那么之前你的网页将会变为 https://zyf.im,同理完全可以被钓鱼。

添加 rel='noopener' 可以解决

不知道你们有没有留意过?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant