// staticdata.dev — referrerPolicies
// Generated file. Do not edit by hand.
// SPDX-License-Identifier: MIT

export const referrerPolicies = [
  {
    "value": "no-referrer",
    "description": "The Referer header will be omitted entirely. No referrer information is sent with requests."
  },
  {
    "value": "no-referrer-when-downgrade",
    "description": "Sends the full URL as the referrer when the protocol security level stays the same or improves (HTTP to HTTP, HTTPS to HTTPS), but omits it on downgrades (HTTPS to HTTP). This is the historical browser default."
  },
  {
    "value": "origin",
    "description": "Sends only the origin (scheme, host, and port) of the document as the referrer, stripping the path and query string."
  },
  {
    "value": "origin-when-cross-origin",
    "description": "Sends the full URL (origin + path + query) for same-origin requests, but only the origin for cross-origin requests."
  },
  {
    "value": "same-origin",
    "description": "Sends the full URL as referrer for same-origin requests. No referrer information is sent for cross-origin requests."
  },
  {
    "value": "strict-origin",
    "description": "Sends only the origin when the protocol security level stays the same (HTTPS to HTTPS) or on HTTP to HTTP requests, and omits the referrer on downgrades (HTTPS to HTTP)."
  },
  {
    "value": "strict-origin-when-cross-origin",
    "description": "Sends the full URL for same-origin requests, only the origin for cross-origin requests when the security level is maintained or improved, and omits the referrer on cross-origin downgrades (HTTPS to HTTP). This is the current browser default."
  },
  {
    "value": "unsafe-url",
    "description": "Always sends the full URL (origin + path + query string) as the referrer, regardless of security. This leaks private URLs to potentially untrusted origins and should be used with caution."
  }
] as const;

export type ReferrerPolicy = (typeof referrerPolicies)[number];
