• Login
    • Search
    • Categories
    • Recent
    • Tags
    • Users
    • Groups
    • Rules
    • Help

    Do more on the web, with a fast and secure browser!

    Download Opera browser with:

    • built-in ad blocker
    • battery saver
    • free VPN
    Download Opera

    declarativeNetRequest does not seem to modify the headers correctly

    Opera for computers
    1
    1
    448
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Claudio4
      Claudio4 last edited by

      Hello,

      I am developing an extension called “Bing Chat on Chromium” that uses the declarativeNetRequest API to modify network requests. The source code is available here: https://github.com/claudio4/bing-chat-on-chromium

      I have noticed that there seems to be a problem with this API on Opera and Opera GX. Specifically, it doesn’t seem to overwrite the header nor does it add additional headers when I use the modifyHeaders action. This works fine on other browsers that support this API, such as Brave, Chrome, Chromium and Vivaldi.

      I have used the ‘declarativeNetRequestFeedback’ permission to check where the rules get triggered and indeed they do. However, the headers are not modified as expected.

      Is this a known issue or a bug? Has anyone else experienced this problem? I would appreciate any help or feedback on how to fix this.

      Thank you.

      Reply Quote 0
        1 Reply Last reply
      • Locked by  leocg leocg 
      • Locked by  leocg leocg 
      • First post
        Last post

      Computer browsers

      • Opera for Windows
      • Opera for Mac
      • Opera for Linux
      • Opera beta version
      • Opera USB

      Mobile browsers

      • Opera for Android
      • Opera Mini
      • Opera Touch
      • Opera for basic phones

      • Add-ons
      • Opera account
      • Wallpapers
      • Opera Ads

      • Help & support
      • Opera blogs
      • Opera forums
      • Dev.Opera

      • Security
      • Privacy
      • Cookies Policy
      • EULA
      • Terms of Service

      • About Opera
      • Press info
      • Jobs
      • Investors
      • Become a partner
      • Contact us

      Follow Opera

      • Opera - Facebook
      • Opera - Twitter
      • Opera - YouTube
      • Opera - LinkedIn
      • Opera - Instagram

      © Opera Software 1995-2025