Security & Privacy
referrerpolicy="unsafe-url"
Sends the full referrer URL to same-origin and cross-origin destinations even on downgrade. Avoid it when URLs can contain private paths or query data; fragments and credentials are still excluded. 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="unsafe-url"Parameters & Attributes
| Name | Type | Description |
|---|---|---|
| referrerpolicy | keyword | Sends the full referrer URL to same-origin and cross-origin destinations even on downgrade. Avoid it when URLs can contain private paths or query data; fragments and credentials are still excluded. |
Working Example
Example Snippethtml
<a href="https://example.com/" referrerpolicy="unsafe-url">External resource</a>