Open vinitshahdeo opened 4 years ago
I would like to work on this issue. This should be done for every link tag with target="_blank"
attribute right?
@govindgoel can you confirm please. Thanks!
@sakshi-2412 I think we can check if it is done before or not else work on this. Thanks
Yes I checked, and rel="noreferrer"
is not added for almost all of the link tags with target="_blank"
attribute. I'll make a PR soon. Thanks ✨
When you link to a page on another site using the
target="_blank"
attribute, you can expose your site to performance and security issues:The other page may run on the same process as your page. If the other page is running a lot of JavaScript, your page's performance may suffer.
The other page can access your window object with the
window.opener
property. This may allow the other page to redirect your page to a malicious URL.Adding
rel="noopener"
orrel="noreferrer"
to yourtarget="_blank"
links avoids these issues.