Giter Club home page Giter Club logo

Comments (3)

dotproto avatar dotproto commented on June 3, 2024

Can you provide more details about the inconsistencies you observed? I put together a test CORS extension and ran it in both Chrome and Firefox. I also tested with host permissions both granted and restricted. In my tests I did not observe any inconsistencies between the preflight behavior of either browser. All tests were performed on macOS 14.4.1.

At the moment my best guess is that your are developing a Manifest V3 extension and have not manually granted the extension it's requested host permissions. Firefox's current design restricts host permission grants for Manifest V3 extensions at install time. There are a couple of relevant issues on Bugzilla related to this such as
1770698 and 1839129.

Screenshot: Chrome 123 - host permissions granted

Chrome 123 - host permissions granted

Screenshot: Firefox Nightly 126.0a1 - host permissions granted

Firefox Nightly 126.0a1 - host permissions granted

Screenshot: Chrome 123 - host permissions NOT granted

Chrome 123 - host permissions NOT granted

Screenshot: Firefox Nightly 126.0a1 - host permissions NOT granted

Screenshot 2024-04-09 at 4 26 10 PM

from content.

thdoan avatar thdoan commented on June 3, 2024

@dotproto it's easy enough to replicate, but before I spend time to put together a demo extension for you to replicate, can you confirm whether this is by design? I run into CORS only when making requests from the options page, but it works fine from background page. If this is by design, then we can close this.

P.S. In Chrome/Edge the same requests work fine on options page as well.

from content.

thdoan avatar thdoan commented on June 3, 2024

I'm closing this since I just created a minimal extension and was not able to reproduce the issue again.

from content.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.