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

Définition

La définition TypeScript telle que trouvée dans le code source d'origam. Cliquez sur l'icône de copie pour copier l'extrait.

typescript

Acceptées

Valeurs

Valeurs littérales de chaîne acceptées pour ce type. Cliquez sur une valeur pour la copier.

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.

Écosystème

Utilisé par

Composants et props qui acceptent ce type comme valeur.

Usage

Exemples

Extraits de code prêts à coller utilisant ce type.

Strict referrer policy on a cross-origin image

html