服务现在在IE11中提供空引荐来源网址

问题描述

试图通过简单的代码查看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>

请在下面找到屏幕截图以获取更多信息。

enter image description here

相关问答

Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其...
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。...
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbc...