js 跳转 XSS漏洞 预防

参考:https://blog.csdn.net/qq_27446553/article/details/52433375

1、a href="_blank" 

     添加属性 rel="noreferrer"

2、window.ope

     var newWindow = window.open("跳转链接");

     newWindow.opener = null;

 

posted @ 2018-09-12 14:07  lvlin241  阅读(1243)  评论(0编辑  收藏  举报