Skip to content

Safari adds a native Global Privacy Control API

WebKit now exposes navigator.globalPrivacyControl and a Sec-GPC request header across iOS, iPadOS, visionOS and macOS 27, and lets WKWebView apps opt into sending the same signal.

Source: WebKit

WebKit engineer John Wilander published details on 18 November of a native Global Privacy Control (GPC) implementation, already live in the current iOS, iPadOS, visionOS and macOS 27 releases. GPC is the browser-level successor to Do Not Track: once a user turns it on, the browser tells every site it visits not to sell or share their data.

The setting lives under Settings > Apps > Safari > Advanced and is off by default. Turn it on and WebKit sets navigator.globalPrivacyControl to true and sends a Sec-GPC: 1 header on every request, for the main frame, its subframes and their subresources. The same control is now exposed to anyone embedding WKWebView or SwiftUI’s newer WebPage, through a navigation-policy delegate:

func webView(_ webView: WKWebView, decidePolicyFor navigationAction: WKNavigationAction,
             preferences: WKWebpagePreferences,
             decisionHandler: @escaping (WKNavigationActionPolicy, WKWebpagePreferences) -> Void) {
    preferences.globalPrivacyControlEnabled = true
    decisionHandler(.allow, preferences)
}

Why it matters: if your site or consent flow already checks navigator.globalPrivacyControl or the Sec-GPC header to honour do-not-sell requests, Safari users can now trigger that signal natively, not just Chrome and Firefox users running an extension. If you ship an iOS app with an embedded web view, you also now get to decide whether your app passes the same signal on to the sites it loads.

The caveat: Apple’s own setting description warns it “may cause some websites to not function properly or work at all”, since GPC only does anything on sites that choose to honour it, and most still don’t.

Share

More from The Wire

All briefs

A Linux KVM bug let one VM read 127GB of host memory

A bug bounty researcher used a four-year-old stale pointer in nested virtualization to read host kernel memory from inside an ordinary cloud VM. DigitalOcean disclosed and patched it as CVE-2026-99312.

via DigitalOcean