Security & Privacy
referrerpolicy="same-origin"
Sends the source URL only to the same origin. Cross-origin destinations receive no referrer, even when both use HTTPS. 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="same-origin"Parameters & Attributes
| Name | Type | Description |
|---|---|---|
| referrerpolicy | keyword | Sends the source URL only to the same origin. Cross-origin destinations receive no referrer, even when both use HTTPS. |
Working Example
Example Snippethtml
<a href="https://example.com/" referrerpolicy="same-origin">External resource</a>