问题描述
试图通过简单的代码查看IE11的引荐来源网址,但不能与ServiceNow 一起使用。此代码在chrome中有效,但在IE中提供了空引荐来源网址。这是代码,请给我建议。
<html>
<head>
<title>First Web Application</title>
</head>
<body>
<span style="color: #ff0000; ">${errorMessage}</span>
<form method="post">
Name : <input type="text" name="name" />
Password : <input type="password" name="password" />
<input type="submit" />
</form>
<a title="Link that opens in a new window" referrerpolicy="origin" href="https://localhost:8082/welcome-get?token=st566565 " target="_blank">Next</a>
</body>
</html>
解决方法
referrer-policy
标签的意思是
“同源”策略指定剥夺使用的完整URL 作为推荐人,在进行相同来源时作为推荐人信息发送 来自特定客户端的请求。跨域请求,另一方面 手,将不包含推荐人信息。
Servicenow拥有自己的类"rel = noopener noreferrer nofollow
,以避免tabNabbing
<a title="Link that opens in a new window" rel="noopener noreferrer nofollow" href="https://localhost:8082/welcome-get?token=st566565 " target="_blank">Next</a>
请在下面找到屏幕截图以获取更多信息。