WebKit Adds a Global Privacy Control API for Apps Using WKWebView and WebPage
Starting with iOS, iPadOS, visionOS and macOS 27, developers can enable Global Privacy Control in app web views through a new WebKit API.
This article was prepared with AI assistance from the official sources listed below, and checked automatically before publication.
WebKit has announced a new API for enabling Global Privacy Control (GPC) on web content embedded in apps. According to a post by John Wilander on the WebKit blog dated 18 November 2026, the feature is available from iOS, iPadOS, visionOS and macOS 27. Developers who use WKWebView, or WebPage for SwiftUI, can now add their own user setting to control GPC.
What has changed
GPC is a web standard that is still evolving. Its specification as of 10 November 2026, as quoted by WebKit, states that GPC is designed so that users can express a preference to opt out of data sharing and cross-context targeted advertising.
Technical details of the API:
- A new property on WKWebpagePreferences called globalPrivacyControlEnabled.
- If set to YES on the preferences object returned from the navigation-policy delegate, that navigation opts in to GPC.
- The setting applies to the entire document tree resulting from that navigation.
- Once enabled, navigator.globalPrivacyControl in JavaScript and the Sec-GPC: 1 request header apply to the main frame, subframes and their subresources.
- In the Swift WebPage API, the same capability is available through WebPage.NavigationPreferences.isGlobalPrivacyControlEnabled.
WebKit includes code examples in Swift (WKWebView and WebPage) and Objective-C. The pattern is the same: the user's preference value is set on the preferences object inside the navigation decision delegate, and the navigation is then allowed.
Why it matters
Previously, the post does not describe any other way for an app to set this signal in a web view. Developers now have an official route so that a user's privacy preference in the app can be passed on to the sites loaded within it.
WebKit also refers to the CCPA page of the California Attorney General's Office. That page mentions the right to opt out of the sale or sharing of personal information, including through GPC. This means the signal is already linked to legal mechanisms in certain jurisdictions.
Implications for organisations in Indonesia
The WebKit source does not discuss Indonesia. However, for organisations that release iOS or macOS apps with embedded web views, this API opens up the opportunity to honour users' privacy preferences inside the app. This is in line with the privacy-by-design expectations surrounding the Personal Data Protection Law (UU PDP).
Web teams should anticipate that the Sec-GPC: 1 header may appear more often on requests originating from such apps. Servers, tag managers, and analytics or advertising components should be able to read this signal.
Practical steps
- Inventory the apps that use WKWebView or WebPage and load web content, whether owned by the organisation or by third parties.
- Decide whether the app will provide a GPC setting for users, then connect its value to the property in the navigation decision delegate.
- Check on the web side whether the Sec-GPC header and the navigator.globalPrivacyControl property are read and acted upon, for example by limiting data sharing or cross-context tracking.
- Test on iOS, iPadOS, visionOS and macOS 27, because the new API is available from those versions.
- Involve the legal or data protection team to determine how this signal is handled in line with the organisation's privacy policy.
Sources & references
This article is a summary and interpretation by the Oemah Solution team of the sources below. Refer to the original sources for full details and context.

