ToolSura
    ToolSura
    HomeTools
    Blog
    ToolSura
    ToolSuraPrivacy-First Tools

    Free utilities that run in your browser. No trackers, no accounts, no uploads.

    All Systems Operational

    Product

    • Free Online Tools
    • Contact
    • FAQs
    • About

    Legal

    • Privacy Policy
    • Cookie Policy
    • Terms & Conditions
    • Disclaimer

    Resources

    • Blog
    • Brand
    • Help

    Social Links

    • Bluesky
    • Mastodon
    • X
    • Product Hunt
    • GitHub
    • LinkedIn
    • DEV.to
    • YouTube

    © 2026 ToolSura. Free tools that run in your browser.

    Remote-First / Based in India

    Technical Manifesto

    Private • Client-Side • No Uploads

    ToolSura on Nick Launches
    Browser-Native
    Privacy-First
    Skip to main content
    Toolsura
    privacy
    N
    Nadia Farouk

    Global Privacy Control (GPC): How Sec-GPC: 1 Works and How to Enable It in WebKit

    November 23, 2026 · 9 min read

    Global Privacy Control sends Sec-GPC: 1 and navigator.globalPrivacyControl. Learn the spec rules, WebKit APIs for OS 27, and GPC's CCPA opt-out effect.

    Diagram of a browser request carrying a Sec-GPC: 1 privacy signal beside a WebKit API toggle on a dark background
    Diagram of a browser request carrying a Sec-GPC: 1 privacy signal beside a WebKit API toggle on a dark background

    On 18 November 2026, WebKit published a new API for Global Privacy Control. Writing on the WebKit blog, John Wilander announced that as of iOS, iPadOS, visionOS, and macOS 27, developers using WKWebView or WebPage for SwiftUI can expose GPC through their own user setting (WebKit's GPC API announcement). Until then, enabling GPC was mostly a browser or extension decision. The new API moves the switch into native apps that embed WebKit.

    Global Privacy Control is a preference a browser attaches to every request: do not sell or share my personal information. It travels over two channels, a Sec-GPC: 1 request header and the navigator.globalPrivacyControl value in the DOM (W3C GPC Working Draft). This guide covers the exact wire rules, the DOM flag's navigation-time caching, the two new WebKit properties, the effect under CCPA, and how a site declares support. It is written for developers who need the mechanics.

    Key takeaways

    • GPC is a browser-level opt-out-of-sale-and-sharing preference, sent on every request. It is not a VPN, an ad blocker, or a deletion tool.
    • Two channels carry it: the Sec-GPC: 1 request header and the navigator.globalPrivacyControl boolean in the DOM.
    • In OS 27, WebKit adds WKWebpagePreferences.globalPrivacyControlEnabled for WKWebView and WebPage.NavigationPreferences.isGlobalPrivacyControlEnabled for SwiftUI. Both default off.
    • The Sec- prefix makes Sec-GPC a forbidden request header, so page JavaScript cannot set it.
    • Under CCPA/CPRA, GPC is a valid opt-out request that covered businesses must honor.

    What Global Privacy Control actually is

    The one-sentence definition

    The W3C spec defines GPC as a signal, transmitted over HTTP and through the DOM, that conveys a person's request to websites and services not to sell or share their personal information with third parties (W3C GPC Working Draft, 24 September 2026). It is a Working Draft on the Recommendation track, edited by Sebastian Zimmeck, Peter Snyder, Justin Brookman, and Aram Zucker-Scharff. The protocol is stateless: every request carries the preference, so a site does not have to store an opt-out decision per visitor.

    Three things GPC is not

    GPC is not designed to exercise deletion rights, and it is not designed to address data collection or ad targeting within the same context (W3C spec §1). It is not a VPN or relay: it changes no network route and hides no IP address. It is not an ad blocker either, since requests still go out with a preference attached. The spec also warns that exposing the preference may increase a user's fingerprinting surface, a privacy cost the authors consider justified by the privacy benefit.

    The wire signal: Sec-GPC: 1

    Exact syntax and the "exactly 1" rule

    The spec names the field Sec-GPC and its value exactly the character 1. A user agent must not send the header when gpcAtNavigation is false, must send exactly 1 when true, and must not send more than one instance in a request or a trailer (W3C spec §3.3). The spec's sample request is GET /something/here HTTP/1.1 with Host: example.com and Sec-GPC: 1.

    Why page JavaScript cannot set it

    MDN classifies Sec-GPC as a forbidden request header because of its Sec- prefix (MDN Sec-GPC reference). A page script cannot forge a forbidden header through fetch or XMLHttpRequest. The signal has to originate in the browser, an extension, or the WebKit API. That restriction is what lets a server treat the header as a preference set by the person rather than by the site.

    How servers and intermediaries must treat it

    A server must ignore Sec-GPC and process the request as though the header were absent unless the value is exactly the character 1 (W3C spec §3.3). That exact-match rule stops malformed or partial values from being read as an opt-out. Intermediaries must not strip a Sec-GPC: 1 header in transit. This is a request-side privacy signal, the counterpart to the response security headers such as HSTS and CSP in our HTTP security headers guide.

    DNT and Tk came before

    MDN lists Do Not Track (DNT) and Tk as related predecessor headers (MDN Sec-GPC reference). GPC keeps the idea of a browser-wide preference but adds an exact value and, in some jurisdictions, legal recognition. The spec acknowledges that lineage while defining a distinct signal.

    The DOM signal: navigator.globalPrivacyControl

    Boolean semantics

    navigator.globalPrivacyControl is a boolean. MDN describes true as the user explicitly not providing consent to sell or share their data, and false as the user granting consent or indicating no preference (MDN Navigator.globalPrivacyControl). The flag mirrors whether a Sec-GPC header would be sent on the request.

    gpcAtNavigation: why the toggle waits for the next navigation

    Each top-level browsing context carries a gpcAtNavigation boolean that reflects the user's preference when the active document began loading. The spec requires that value to be cached on each top-level navigation to keep the page consistent (W3C spec §§3.2, 3.4). If the preference changes mid-tab, the user agent should offer to reload the inconsistent tab. In practice, enabling GPC after a page has loaded does not flip navigator.globalPrivacyControl in that page; a reload or fresh navigation does.

    Subframes, subresources, and WorkerNavigator

    The flag is exposed on both Navigator and WorkerNavigator, so workers can read it (W3C spec §§3.2, 3.4). With the new WebKit API, both the DOM flag and the Sec-GPC: 1 header are active for the main frame, its subframes, and their subresources (WebKit announcement). Coverage is the whole document tree produced by the navigation, not only the top-level document.

    Enabling GPC in WebKit apps (iOS/iPadOS/visionOS/macOS 27+)

    The 18 November 2026 WebKit post gives embedded-browser developers two properties, one for WKWebView and one for SwiftUI (WebKit announcement).

    WKWebpagePreferences.globalPrivacyControlEnabled

    Apple documents var globalPrivacyControlEnabled: Bool { get set } on WKWebpagePreferences, available from iOS 27.0, iPadOS 27.0, Mac Catalyst 27.0, macOS 27.0, and visionOS 27.0 (Apple developer docs). Set it on the preferences object returned by the navigation-policy delegate. Setting it to YES opts that navigation into GPC for the whole document tree.

    SwiftUI WebPage.NavigationPreferences.isGlobalPrivacyControlEnabled

    The SwiftUI equivalent is var isGlobalPrivacyControlEnabled: Bool on WebPage.NavigationPreferences, with the same OS floor (Apple developer docs). The WebKit post shows it assigned in the navigation delegate: preferences.isGlobalPrivacyControlEnabled = userPrefersGlobalPrivacyControl inside decidePolicy(for:preferences:) (WebKit announcement).

    Defaults and platform availability

    Both properties default off. WKWebpagePreferences.globalPrivacyControlEnabled defaults to NO, and SwiftUI's isGlobalPrivacyControlEnabled defaults to false (Apple WKWebpagePreferences docs, Apple WebPage docs). With that documented default, an app that never sets the property does not enable GPC through this API.

    Wire it to a real user setting

    These are opt-in properties. The WebKit post frames the setting as a way to add your own user control, not a switch to flip quietly on a user's behalf. Exposing GPC may add to a user's fingerprinting surface (W3C spec §6). Enable it from an explicit choice the user made and keep your app's interface in step with the stored value.

    What GPC means for CCPA/CPRA opt-out

    The right to opt out of sale and sharing

    California's Attorney General lists the right to opt out of the sale or sharing of personal information, including via GPC (California AG CCPA page). The AG's GPC page calls a user-enabled global privacy control one acceptable opt-out method and says it must be honored by covered businesses as a valid consumer request to stop the sale or sharing of personal information (California AG GPC page). CPRA amended CCPA effective 1 January 2023; the AG's office generally calls the combined law CCPA.

    "Must be honored": two methods, no account, 15 business days

    Businesses in scope must offer two or more opt-out methods, cannot require an account, and must act within 15 business days (California AG GPC page). GPC counts as a valid request, not a courtesy. The AG pages state the requirement but do not settle every scope question, which is why the spec's limits still matter.

    Cross-context behavioral advertising

    In CCPA terms, sharing means cross-context behavioral advertising (California AG GPC page). GPC speaks to that sale-or-sharing decision. It does not stop first-party collection or same-context targeting (W3C spec §1).

    Where the law is silent

    Spec §5.1 says at least four states have specifically identified GPC as a valid means to exercise legal opt-out rights, and that Virginia and Utah give consumers new opt-out rights but are silent on the legal effect of global opt-out signals (W3C spec §5.1). The spec does not enumerate those four states, and this guide will not guess them. Legal force varies by jurisdiction; this is a technical explainer, not legal advice.

    Publishing your support: /.well-known/gpc.json

    A site can publish a support statement at /.well-known/gpc.json with an application/json body (W3C spec §4, GPC implementation guide). The file has two members. gpc set to true means the origin intends to abide by GPC at least where legally obligated, while false means it does not. lastUpdate is an RFC3339 full-date or date-time. The guide's concrete example is {"gpc": true, "lastUpdate": "2022-04-20"}. By default, an origin's support is unknown.

    Testing it

    Two checks confirm GPC in a browser. In DevTools, inspect a navigation's request headers and look for Sec-GPC: 1. In the console, read navigator.globalPrivacyControl. If the flag stays false right after you toggle GPC on, remember that the value was cached at navigation, so reload (W3C spec §3.2, MDN Navigator.globalPrivacyControl). For automated tests, spec §8 defines WebDriver extension commands under POST/GET /session/{id}/privacy for setting and reading the preference (W3C spec §8). MDN marks both interfaces Limited availability, not Baseline, because they do not work in every widely used browser (MDN Sec-GPC reference).

    GPC vs Private Relay vs VPN vs DNT

    Signal Layer Effect
    GPC HTTP request + DOM Sends a consent preference; changes no route
    iCloud Private Relay Network proxy Hides the user's IP via a dual-hop relay
    VPN Device network tunnel Routes all traffic through an exit
    DNT Legacy HTTP request header Preference with no exact value or legal hook

    GPC sits at the request layer. It communicates a preference to each site and leaves routing untouched.

    Limits and caveats

    GPC is a narrow instrument. It does not delete data, does not govern same-context targeting, and has no legal force where a jurisdiction is silent on global opt-out signals (W3C spec §§1, 5.1). Exposing the preference may enlarge a user's fingerprinting surface (W3C spec §6). Support is real but uneven: Brave and DuckDuckGo enable GPC by default, Firefox exposes it in settings, and extensions such as EFF Privacy Badger add it (GPC project site, MDN). The project site's adoption figures are self-reported, not independent measurement, and are not used here as demand data. These details were checked on 23 November 2026; verify against the current spec and MDN before relying on them.

    Related Tools & Further Reading

    • iCloud Private Relay explained covers the network-layer approach that GPC does not attempt.
    • No-upload PDF tools and privacy covers file data that leaves your machine, a different threat model.
    • SSL checker checks TLS certificates, the transport layer rather than a consent signal.
    Nadia Farouk

    Written by

    Nadia Farouk

    I treat HTTP as a text protocol with a written grammar, and most surprises come from reading a summary rather than the specification. The request line, the header block and then an optional body, with the body delimited by length or by chunking rather than by a marker. Headers are case-insensitive, and their order carries no meaning.

    Servers may combine repeated headers in ways clients do not expect, and this is where several bugs live: multiple values in one comma-separated line against several repeated lines are not the same thing to every implementation. Caching is the largest single source of surprise. Cache-Control exists in several forms, and max-age, no-cache and no-store are routinely confused.

    no-cache means revalidate before use, not do not store, and that difference accounts for a large share of pages that appear not to update. ETag and Last-Modified exist so a client can revalidate cheaply, and a server that sends an ETag but ignores the conditional request forces a full transfer every time. Vary decides which request headers change the identity of the response, and a missing Vary on a page served differently by cookie produces a cache serving one visitor's content to another.

    Status codes get misused more than any other part. Several codes are used as success with a body attached, which breaks clients that branch on the code, and a 302 on a request that should be a 307 changes the method. I close each page on what a browser sends, because the difference between a tool's headers panel and the request that went over the wire is where most of these explanations stop matching reality.

    Share

    Frequently Asked Questions

    PreviousCSS Conic Gradient: Pie Charts and Color WheelsNextCounterfeit TLS Certificates: What the ccTLD Hijacks Prove

    Comments

    Leave a Review

    Rate this tool
    Overall Rating
    Spam Protection Active