REFERRER_POLICY
enum
Data Display
TypeScript enum for the HTML referrerpolicy attribute — controls how much referrer information is sent with image requests.
TypeScript
Definition
The TypeScript definition as found in the origam source. Click the copy icon to copy the snippet.
Members
Members
All members of this enum. Click a value to copy it to clipboard.
- REFERRER_POLICY.NO_REFERRER
- No Referer header is sent with requests.
- REFERRER_POLICY.NO_REFERRER_WHEN_DOWNGRADE
- Full URL sent to same-security-level origins; no Referer on downgrade (HTTPS → HTTP).
- REFERRER_POLICY.ORIGIN
- Only the origin (scheme + host + port) is sent, never the path or query string.
- REFERRER_POLICY.ORIGIN_WHEN_CROSS_ORIGIN
- Full URL for same-origin requests; only the origin for cross-origin requests.
- REFERRER_POLICY.SAME_ORIGIN
- Full URL sent only to same-origin destinations; no Referer header cross-origin.
- REFERRER_POLICY.STRICT_ORIGIN
- Origin sent when same security level; no Referer on downgrade.
- REFERRER_POLICY.STRICT_ORIGIN_WHEN_CROSS_ORIGIN
- Full URL for same-origin; origin only cross-origin; nothing on downgrade. Browser default.
- REFERRER_POLICY.UNSAFE_URL
- Full URL always sent — leaks path and query string even cross-origin. Use with care.
Ecosystem
Used by
Components and props that accept this enum as a value.
Usage
Examples
Ready-to-paste code snippets using this enum.
Using the enum in script setup