coderef

Global privacy controlLimited availability

The Sec-GPC request header indicates that the user does not consent to a website or service selling or sharing their personal information with third parties.

Not yet supported in all major browsers — check the table and provide a fallback.

Browser support

DesktopChrome
✕Not supportedup to 155
Current: 155
Edge
✕Not supportedup to 154
Current: 154
Firefox
1–119Not supported
120+Supportedsince Nov 21, 2023
Current: 157
Safari
✕Not supportedup to 27
Current: 27
MobileChrome Android
✕Not supportedup to 155
Current: 155
Firefox Android
4–121Not supported
122+Supportedsince Jan 23, 2024
Current: 157
Safari iOS
✕Not supportedup to 27
Current: 27

How to use

Not supported in Chrome, Edge, Safari, Chrome Android, Safari iOS. Use feature detection below and provide a fallback (or a polyfill) for those browsers.

Example

Full syntax and examples are on MDN: globalPrivacyControl.

Feature detection

JS · check before using
if ("Navigator" in globalThis && "globalPrivacyControl" in Navigator.prototype) {
  // Navigator.globalPrivacyControl is available
}

Sub-features

Support for each part of the feature (3). The overall table above shows when the whole feature works.

Sub-featureChromeEdgeFirefoxSafariChrome AndroidFirefox AndroidSafari iOS
Navigator.globalPrivacyControl✕✕120✕✕122✕
WorkerNavigator.globalPrivacyControl✕✕120✕✕122✕
http.headers.Sec-GPC✕✕120✕✕122✕