Navigation

    • 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

    Starting from Opera 64 onAuthRequired does not work for XHR requests

    Opera add-ons
    2
    5
    382
    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.
    • A Former User
      A Former User last edited by

      Steps to reproduce the problem:

      1. Extension has following listener in background page:
        chrome.webRequest.onAuthRequired.addListener(onAuthChromeHandler, {urls: ["<all_urls>"]}, ["asyncBlocking"]);
      2. Permissions contains "proxy", "storage", "webRequest", "webRequestBlocking", "notifications", "<all_urls>"
      3. Make a request with XHR with Basic Auth challenge (or set a proxy with proxy auth challenge and make a xhr request)

      What is the expected behavior?
      onAuthChromeHandler can provide credentials for the basic auth challenge.

      What went wrong?
      onAuthChromeHandler is called but provided credentials are ignored.

      Did this work before?
      Yes, opera 63 works just fine

      Does this work in other browsers?
      Yes, Chrome works as expected and same behaviour as Opera 63

      I have made a simple extension to demonstrate this bug:
      https://drive.google.com/open?id=1jSygBV1c-dY88ZTRoIlKBEQg122lvNWh
      This extension basically makes a xhr request to a url with basic auth challenge

      1. Download extension and install it on Opera 64 or Opera 65

      2. Open background page

      3. Wait 5 seconds until xhr request is made

      4. On Opera 64/65 you will see that every 5 seconds you will get 401 which means onAuthRequired was not able to answer the challenge

      5. RUN the same extension on Opera 63 and it works without any issue (Also on Chrome no problems)

      We have currently a extension with 1 million active users using this combination. And it does NOT work on Opera anymore (Starting from Opera 64).
      It seems like Bug Regression. On Opera 63 and Chrome it works without problems.

      Reply Quote 0
        1 Reply Last reply
      • A Former User
        A Former User last edited by

        Any update on this? This seems to be a significant bug at least for extension which use this kind of auth.

        Reply Quote 0
          1 Reply Last reply
        • A Former User
          A Former User last edited by

          Is anybody reading these forum posts from Opera Devs? Or is this the wrong place for reporting Regression bugs.

          Reply Quote 0
            1 Reply Last reply
          • burnout426
            burnout426 Volunteer last edited by

            Your bug is DNAWIZ-82553. I can confirm that the test extension works fine in Vivaldi. Hopefully someone at Opera will take a look at it soon.

            Reply Quote 0
              1 Reply Last reply
            • burnout426
              burnout426 Volunteer last edited by

              This should be fixed in Opera Developer 68.0.3616.0.

              See "DNA-84701 onAuthRequired does not work for XHR requests" in the changelog.

              Please test in that build of Opera Developer to confirm.

              Reply Quote 0
                1 Reply Last reply
              • 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-