Websites may declare allowed extensions
Published
On 2026-11-19, a WICG proposals issue suggested a website-controlled policy for browser-extension access. A server would identify allowed extensions in an HTTP response header. The browser would capture and enforce that policy before an extension could read or modify response headers or page content, including the DOM (WICG proposal issue).
The issue labels the idea an early proposal and says it is not implemented. It does not define the header’s final name or syntax. No browser can be configured from this text today, so the proposal is a design for discussion and provides no deployment instructions (WICG proposal issue).
The confused-deputy path
Section titled “The confused-deputy path”The proposal starts with a website and a companion extension. The companion may hold permissions for browser tabs or browsing history, along with another sensitive capability. It may accept messages only from the website’s trusted origins. A second installed extension can still modify that trusted page and induce it to send a request to the companion (WICG proposal issue).
In that sequence, the companion becomes a confused deputy: it performs an action with its authority for the extension that lacks that authority. The proposal is careful about the mechanism. DOM changes or script injection may enable the request, and header changes may weaken an existing protection, but changing a header by itself does not establish the complete attack (WICG proposal issue).
Chrome’s extension documentation explains why page access is a relevant boundary. A content script runs in the context of a web page and can read details from it. The script can also change the DOM and pass information to its parent extension. Its JavaScript normally runs in an isolated world, but it shares access to the page’s DOM with the page (Chrome content scripts).
Existing extension permission is described from the extension side. Chrome allows static content scripts to declare URL match patterns in content_scripts, while programmatic injection uses host permissions or a temporary grant such as activeTab. MDN likewise describes host_permissions as requesting privileges for matching origins, including XMLHttpRequest and fetch access, tab metadata, cookies, and script injection where the relevant APIs apply (Chrome content scripts; MDN host_permissions).
The proposed header adds a decision from the website side. When present, an extension not explicitly allowed would be blocked from reading or modifying the protected page or DOM, injecting scripts, replacing page content, changing the protected response headers, or using another extension API to bypass the restriction (WICG proposal issue).
Browser-held enforcement
Section titled “Browser-held enforcement”The browser would need to capture the server policy before extensions can change headers or inspect the page, then retain the effective policy in browser-controlled state. Removing a visible copy of the header would not remove the protection. That timing is central to the proposal because enforcement performed by page JavaScript would already be inside the environment an extension can influence (WICG proposal issue).
Existing extension permissions would not override the website policy. The reverse is also explicit: being listed by the website would not grant an extension new browser permissions. An allowed extension would continue through the browser’s ordinary permission checks, while a blocked extension would receive no access to the protected page (WICG proposal issue).
The proposal treats navigation and document lifetime as additional design work. It identifies frames, redirects, cached responses, and alternative access paths as coverage requirements. Those questions show why a server header needs browser integration. A DOM convention copied into application code cannot provide that enforcement (WICG proposal issue).
It says exception design must consider accessibility tools, password managers, and other user-selected tools. Exceptions may be granted only through explicit user or administrator controls; extensions cannot grant themselves access (WICG proposal issue).
Existing website-to-extension connections
Section titled “Existing website-to-extension connections”Chrome already has an extension-side control for messages from web pages. The externally_connectable manifest key declares which extensions, applications, and web pages can connect to an extension through the documented messaging APIs. If matches is absent, no web page can connect; if the entire key is absent, other extensions can connect but web pages cannot (Chrome externally_connectable).
An extension that intentionally accepts messages from a site can name matching origins in its manifest. The documentation says matches contains match patterns for web pages allowed to connect and gives HTTPS examples (Chrome externally_connectable).
{ "externally_connectable": { "matches": [ "https://app.example.com/*", "https://admin.example.com/*" ] }}This manifest fragment configures an extension today; it is unrelated to the proposed website header. Use it to audit which pages may initiate a connection to the companion extension. Then inspect every external-message handler and validate the sender plus the message’s allowed operation before dispatching privileged work (Chrome externally_connectable).
Chrome’s content-script documentation provides another audit surface. Review static content_scripts.matches and the host permissions used by programmatic injection. Also review calls to chrome.scripting.executeScript(). Remove match patterns that are not needed for the extension’s job, and preserve the extension’s ordinary permission checks even for trusted sites (Chrome content scripts).
MDN notes that host permissions can trigger installation prompts or appear in post-install permission controls, depending on the browser. That user-facing grant is still distinct from a website’s proposed allowlist. One records what a user or browser permits an extension to request; the other would let a responding website restrict which installed extensions may touch its document (MDN host_permissions; WICG proposal issue).
Impact on web-app security reviews
Section titled “Impact on web-app security reviews”A web app cannot adopt the proposed policy until browsers define and implement it. The immediate engineering task is to map existing trust paths: pages that exchange messages with companion extensions, extension match patterns that reach sensitive pages, externally exposed message handlers, and server responses whose security headers an extension can observe or modify under existing permissions (WICG proposal issue).
Start the review from the extension package. Do not guess a server header. Inspect manifest.json for host_permissions and content_scripts, along with externally_connectable. Search the extension source for external-message listeners and script injection. The expected result lists origins and handlers, then identifies each privileged operation. An unexpected wildcard or unused origin is a concrete item to remove or justify (Chrome content scripts; Chrome externally_connectable).
If the companion extension receives a request from a web page, origin validation alone does not establish who caused the page to send it. That is the gap described by the proposal. Keep operation-level authorization and input validation in the extension, and avoid treating the proposed policy as a replacement for extension permissions or message validation (WICG proposal issue).
Recovery from an over-broad current configuration is available without the proposal. Narrow the extension’s URL match patterns and externally_connectable.matches. Reject messages outside the companion’s documented operations. If removing a host breaks a required workflow, restore only that named origin and exercise the external connection again instead of returning to a global wildcard (Chrome content scripts; Chrome externally_connectable).
Related entries
Section titled “Related entries”- Web app manifest: follow this entry for the manifest reference and its members.
- Service workers: follow this entry for the service-worker lifecycle and related APIs.
- Compatibility by feature: follow this entry for feature-grouped compatibility data.
Open and unverified
Section titled “Open and unverified”The header name and syntax remain open. The issue calls for coverage of frames, redirects, cached responses, and alternative access paths (WICG proposal issue).
Whether a browser will implement the proposal, which standards-track repository would host it, which interoperability positions it would receive, and which release could include it remain unconfirmed. Proposals filed in the WICG proposals repository do not automatically have official WICG incubation status (WICG proposals repository).
Whether and how the exception design will accommodate accessibility tools, password managers, and other user-selected tools beyond its stated constraints is not confirmed. The issue says exceptions may be granted only through explicit user or administrator controls and cannot be granted by extensions themselves (WICG proposal issue).
Sources
Section titled “Sources”- Proposal: Website-declared, browser-enforced restrictions on extension access (WICG proposals)
- Content scripts (Chrome for Developers)
externally_connectable(Chrome for Developers)host_permissions(MDN)- WICG proposals repository (WICG)