---
title: "Global Privacy Control (GPC) WebKit API"
description: "iOS, iPadOS, visionOS and macOS 27 add a WebKit API that lets apps embedding WKWebView or SwiftUI's WebPage opt navigations into Global Privacy Control, the emerging standard for signalling opt-out of data sharing and cross-context targeted advertising (recognized under California's CCPA)."
url: "https://swe.quest/articles/global-privacy-control-gpc-webkit-api-320ef8eb92f93e52"
canonical: "https://webkit.org/blog/18646/global-privacy-control-gpc-webkit-api/"
source: "WebKit"
published: "2026-11-18"
difficulty: "medium"
kind: "Announcement"
reading_minutes: 1
tags: ["privacy","browsers","mobile","swift"]
---

# Global Privacy Control (GPC) WebKit API

A post on [WebKit](https://swe.quest/sources/webkit.md), published 2026-11-18, 1 min read, Announcement. Original: [https://webkit.org/blog/18646/global-privacy-control-gpc-webkit-api/](https://webkit.org/blog/18646/global-privacy-control-gpc-webkit-api/)

## Summary

iOS, iPadOS, visionOS and macOS 27 add a WebKit API that lets apps embedding WKWebView or SwiftUI's WebPage opt navigations into Global Privacy Control, the emerging standard for signalling opt-out of data sharing and cross-context targeted advertising (recognized under California's CCPA). Setting \`globalPrivacyControlEnabled\` on the WKWebpagePreferences returned from the navigation-policy delegate, or \`isGlobalPrivacyControlEnabled\` on WebPage.NavigationPreferences, enables \`navigator.globalPrivacyControl\` and the \`Sec-GPC: 1\` header for the main frame, subframes and subresources. Example delegate code is given in Swift and Objective-C so apps can wire GPC to their own user setting.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Privacy](https://swe.quest/tags/privacy.md) (Security)
- [Browsers](https://swe.quest/tags/browsers.md) (Web & mobile)
- [Mobile](https://swe.quest/tags/mobile.md) (Web & mobile)
- [Swift](https://swe.quest/tags/swift.md) (Languages)

## Prerequisites

- WKWebView navigation delegates
- Swift or Objective-C basics ([easy posts on Swift](https://swe.quest/tags/swift.md?difficulty=easy))

## Keywords

Global Privacy Control, WebKit, WKWebView, WKWebpagePreferences, Sec-GPC, CCPA, SwiftUI WebPage

## Related posts

- [Badging for Home Screen Web Apps](https://swe.quest/articles/badging-for-home-screen-web-apps-42741870aac64b42.md): WebKit · 2023-04-25 · Medium · 4 min read · Browsers, Mobile, JavaScript, Frontend
  WebKit on iOS and iPadOS 16.4 supports the W3C Badging API, but only for web apps added to the Home Screen.
- [Web Push for Web Apps on iOS and iPadOS](https://swe.quest/articles/web-push-for-web-apps-on-ios-and-ipados-7478bb28f95c6572.md): WebKit · 2023-02-16 · Medium · 7 min read · Browsers, Mobile, Communications, Frontend
  iOS and iPadOS 16.4 beta 1 adds standards-based Web Push for Home Screen web apps, using the Push API, Notifications API and Service Workers over Apple Push Notification service, with no Apple Developer Program membership required (allow \*.push.apple.com).
- [WebKit Features in Safari 16.1](https://swe.quest/articles/webkit-features-in-safari-16-1-3a59f2af760879c3.md): WebKit · 2022-10-24 · Medium · 7 min read · Browsers, Identity & auth, CSS, Frontend
  Safari 16.1 brings Web Push to macOS Ventura using the standard Push API, Notifications API and Service Workers, delivered via Apple Push Notification service.
- [Enabling the Inspection of Web Content in Apps](https://swe.quest/articles/enabling-the-inspection-of-web-content-in-apps-389bd71d9c9fbad3.md): WebKit · 2023-03-20 · Medium · 4 min read · Debugging, Mobile, Swift, Developer tools, Browsers
  WKWebView and JSContext now expose an opt-in \`isInspectable\` property (default false), letting released apps, not just Xcode development builds, have their web content and JavaScript contexts debugged with Safari's Web Inspector.
- [News from WWDC25: WebKit in Safari 26 beta](https://swe.quest/articles/news-from-wwdc25-webkit-in-safari-26-beta-51cf97efcc601aab.md): WebKit · 2025-06-09 · Medium · 32 min read · Browsers, Frontend, CSS, Swift, Mobile
  Safari 26 beta ships 67 new features and 107 improvements, with the version number jumping from 18.x to 26 to match Apple's OS renumbering.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
