User:Apking/Web Security Guidelines: Difference between revisions

more tweaks
(tweaks)
(more tweaks)
 
Line 580: Line 580:
Referrer-Policy: strict-origin-when-cross-origin
Referrer-Policy: strict-origin-when-cross-origin


# Disable referrers for browsers that don't support strict-origin-when-cross-origin; uses
# Disable referrers for browsers that don't support strict-origin-when-cross-origin
# strict-origin-when-cross-origin for browsers that do
# Uses strict-origin-when-cross-origin for browsers that do
Referrer-Policy: no-referrer, strict-origin-when-cross-origin
Referrer-Policy: no-referrer, strict-origin-when-cross-origin


# Do the same, but with a meta tag
# Do the same, but with a meta tag
<meta http-equiv="Referrer-Policy" content="strict-origin-when-cross-origin">
<meta http-equiv="Referrer-Policy" content="no-referrer, strict-origin-when-cross-origin">


# Do the same, but only for a single link
# Do the same, but only for a single link
&lt;a href="https://mozilla.org/" referrerpolicy="strict-origin-when-cross-origin"&gt;</pre>
&lt;a href="https://mozilla.org/" referrerpolicy="no-referrer, strict-origin-when-cross-origin"&gt;</pre>


== See Also ==
== See Also ==
Anti-spam team, Confirmed users
99

edits