We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
在 HTML 内设置 referrer 策略。例如,你可以用一个 name 为 referrer 的 元素为整个文档设置 referrer 策略。
<meta name="referrer" content="origin">
或者用 、、、<iframe>、<script> 或者 元素上的 referrerpolicy 属性为其设置独立的请求策略。
<a href="http://example.com" referrerpolicy="origin">
另外也可以在 、 或者 元素上将 rel 属性设置为 noreferrer。
<a href="http://example.com" rel="noreferrer">
备注: 动态插入 (使用 document.write() 方法或者 appendChild() 等方法)会使 referrer 行为变得不可预测。 如果定义了互相冲突的策略,则会转而使用 no-referrer 策略。
MDN Web Docs Referrer-Policy
The text was updated successfully, but these errors were encountered:
No branches or pull requests
在 HTML 内设置 referrer 策略。例如,你可以用一个 name 为 referrer 的 元素为整个文档设置 referrer 策略。
或者用 、、
、<iframe>、<script> 或者 元素上的 referrerpolicy 属性为其设置独立的请求策略。
另外也可以在 、 或者 元素上将 rel 属性设置为 noreferrer。
的 content 属性的值
参考文档
MDN Web Docs Referrer-Policy
The text was updated successfully, but these errors were encountered: