Apple announced on the WebKit blog on 18 November that iOS, iPadOS, visionOS and macOS 27 will include a new WebKit API for Global Privacy Control (GPC). The API gives developers a standard way to let users signal that they do not want their data shared or used for targeted advertising across contexts.

The API is exposed through a new WKWebpagePreferences property, globalPrivacyControlEnabled, which developers set to YES in the navigation-policy delegate. Enabling it activates both the JavaScript property navigator.globalPrivacyControl and the Sec-GPC: 1 HTTP request header for the main frame, subframes and subresources. The Swift WebPage API mirrors this with the WebPage.NavigationPreferences property isGlobalPrivacyControlEnabled.

GPC is an emerging web standard that allows people to communicate a preference against having their personal details sold or used for cross-context advertising. The California Consumer Privacy Act (CCPA) gives California residents the right to exercise that preference, including through GPC.

Why it matters

In our view, the dedicated API simplifies compliance with laws such as the CCPA and reduces developer friction in implementing GPC. It continues Apple’s focus on privacy, following additions such as granular app permission controls and Safari’s email-based tracking blocking.