Security & Privacy

referrerpolicy="origin"

Sends only the source origin, including scheme, host and nondefault port. It can send that origin even on a security downgrade; choose strict-origin to prevent that. 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="origin"

Parameters & Attributes

NameTypeDescription
referrerpolicykeywordSends only the source origin, including scheme, host and nondefault port. It can send that origin even on a security downgrade; choose strict-origin to prevent that.

Working Example

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