Skip to content

Host Permissions CORS contradiction #39168

Closed

Description

@dshook

MDN URL

https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/manifest.json/permissions

What specific section or headline is this issue about?

Host Permissions

What information was incorrect, unhelpful, or incomplete?

On the permissions page There is the line under host permissions that says:

The extra privileges include:
XMLHttpRequest and fetch access to those origins without cross-origin restrictions (even for requests made from content scripts)

But on the host permissions page the same section says:

The extra privileges include:
XMLHttpRequest and fetch access to those origins without cross-origin restrictions (though not for requests from content scripts, as was the case in Manifest V2).

Which contradicts the other page for what content scripts can do

What did you expect to see?

Consistent language between pages

Do you have any supporting links, references, or citations?

No response

Do you have anything more you want to share?

No response

MDN metadata

Page report details

Activity

  1. added
    needs triageTriage needed by staff and/or partners. Automatically applied when an issue is opened.
    on Apr 17, 2025
  2. self-assigned this
    on Apr 24, 2025
  3. removed
    needs triageTriage needed by staff and/or partners. Automatically applied when an issue is opened.
    on Apr 24, 2025
  4. Rob--W commented on Jan 5, 2026

    @Rob--W
    Member

    There is no contradiction here.

    The permissions key is only used for host permissions in Manifest Version 2.
    The host_permissions key is only used for host permissions in Manifest Version 3.

    Historically, permissions offered the ability for content scripts to send requests to destinations with fetch/XHR without requiring the target to opt in via CORS. This was supported by Chrome and Firefox.
    At some point, Chromium dropped support for cross-origin requests with permissions from content scripts, and continued to enforce this in their Manifest Version 3 implementation.
    Firefox never did this in its MV2 version, but dropped support for this in MV3 as well.

    Safari does not support fetch/XHR with permissions from content scripts, in MV2 or MV3 (like Chrome).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions