Security & Privacy

referrerpolicy="strict-origin-when-cross-origin"

Sends the full referrer for same-origin requests, only the origin for permitted cross-origin requests, and no referrer on downgrade. This is the modern default policy in the absence of another policy. On relevant request-generating elements such as a, area, img, iframe, link and script. An omitted or empty policy uses the applicable inherited/default policy. The referrer never includes credentials or fragments. The example requires real navigation and server logs to inspect headers.

Formal Syntax & Structure

html syntaxhtml
referrerpolicy="strict-origin-when-cross-origin"

Parameters & Attributes

NameTypeDescription
referrerpolicykeywordSends the full referrer for same-origin requests, only the origin for permitted cross-origin requests, and no referrer on downgrade. This is the modern default policy in the absence of another policy.

Working Example

Example Snippethtml
<a href="https://example.com/" referrerpolicy="strict-origin-when-cross-origin">External resource</a>
HTML Reference