TReferrerPolicy

type
Data Display

Enum-derived union of all standard Referrer-Policy header values accepted by the referrerpolicy prop on OrigamImg — controls what information is sent in the Referer header when the browser fetches the image.

TypeScript

Definition

The TypeScript definition as found in the origam source. Click the copy icon to copy the snippet.

typescript

Accepted

Values

Accepted string literal values for this type. Click a value to copy it.

no-referrer
No Referer header is sent with any request — maximum privacy.
no-referrer-when-downgrade
Full URL sent on same-protocol requests; no header on HTTPS→HTTP downgrades (browser default).
origin
Sends only the origin (scheme + host + port) without the path.
origin-when-cross-origin
Full URL for same-origin requests; origin only for cross-origin.
same-origin
Full URL for same-origin requests; no header for cross-origin.
strict-origin
Origin only on same-protocol requests; no header on HTTPS→HTTP downgrades.
strict-origin-when-cross-origin
Full URL for same-origin; origin only for cross-origin same-protocol; nothing on downgrade. Recommended default.
unsafe-url
Full URL always sent — exposes path and query string to third parties, even over HTTP.

Ecosystem

Used by

Components and props that accept this type as a value.

Usage

Examples

Ready-to-paste code snippets using this type.

Strict referrer policy on a cross-origin image

html