<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Starting from Opera 64 onAuthRequired does not work for XHR requests]]></title><description><![CDATA[<p dir="auto">Steps to reproduce the problem:</p>
<ol>
<li>Extension has following listener in background page:<br />
chrome.webRequest.onAuthRequired.addListener(onAuthChromeHandler, {urls: ["&lt;all_urls&gt;"]}, ["asyncBlocking"]);</li>
<li>Permissions contains   "proxy", "storage", "webRequest", "webRequestBlocking",  "notifications", "&lt;all_urls&gt;"</li>
<li>Make a request with XHR with Basic Auth challenge (or set a proxy with proxy auth challenge and make a xhr request)</li>
</ol>
<p dir="auto">What is the expected behavior?<br />
onAuthChromeHandler can provide credentials for the basic auth challenge.</p>
<p dir="auto">What went wrong?<br />
onAuthChromeHandler is called but provided credentials are ignored.</p>
<p dir="auto">Did this work before?<br />
Yes, opera 63 works just fine</p>
<p dir="auto">Does this work in other browsers?<br />
Yes, Chrome works as expected and same behaviour as Opera 63</p>
<p dir="auto">I have made a simple extension to demonstrate this bug:<br />
<a href="https://drive.google.com/open?id=1jSygBV1c-dY88ZTRoIlKBEQg122lvNWh" target="_blank" rel="noopener noreferrer nofollow ugc">https://drive.google.com/open?id=1jSygBV1c-dY88ZTRoIlKBEQg122lvNWh</a><br />
This extension basically makes a xhr request to a url with basic auth challenge</p>
<ol>
<li>
<p dir="auto">Download extension and install it on Opera 64 or Opera 65</p>
</li>
<li>
<p dir="auto">Open background page</p>
</li>
<li>
<p dir="auto">Wait 5 seconds until xhr request is made</p>
</li>
<li>
<p dir="auto">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</p>
</li>
<li>
<p dir="auto">RUN the same extension on Opera 63 and it works without any issue (Also on Chrome no problems)</p>
</li>
</ol>
<p dir="auto">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).<br />
It seems like Bug Regression. On Opera 63 and Chrome it works without problems.</p>
]]></description><link>https://forums.opera.com/topic/36488/starting-from-opera-64-onauthrequired-does-not-work-for-xhr-requests</link><generator>RSS for Node</generator><lastBuildDate>Sat, 10 Oct 2026 06:28:44 GMT</lastBuildDate><atom:link href="https://forums.opera.com/topic/36488.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 15 Nov 2019 21:03:46 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Starting from Opera 64 onAuthRequired does not work for XHR requests on Tue, 03 Mar 2020 04:05:40 GMT]]></title><description><![CDATA[<p dir="auto">This should be fixed in <a href="https://blogs.opera.com/desktop/2020/03/opera-68-0-3616-0-developer-update/" target="_blank" rel="noopener noreferrer nofollow ugc">Opera Developer 68.0.3616.0</a>.</p>
<p dir="auto">See "DNA-84701 onAuthRequired does not work for XHR requests" in <a href="https://blogs.opera.com/desktop/changelog-for-68/#b3616.0" target="_blank" rel="noopener noreferrer nofollow ugc">the changelog</a>.</p>
<p dir="auto">Please test in that build of Opera Developer to confirm.</p>
]]></description><link>https://forums.opera.com/post/201278</link><guid isPermaLink="true">https://forums.opera.com/post/201278</guid><dc:creator><![CDATA[burnout426]]></dc:creator><pubDate>Tue, 03 Mar 2020 04:05:40 GMT</pubDate></item><item><title><![CDATA[Reply to Starting from Opera 64 onAuthRequired does not work for XHR requests on Sun, 23 Feb 2020 09:36:23 GMT]]></title><description><![CDATA[<p dir="auto">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.</p>
]]></description><link>https://forums.opera.com/post/199959</link><guid isPermaLink="true">https://forums.opera.com/post/199959</guid><dc:creator><![CDATA[burnout426]]></dc:creator><pubDate>Sun, 23 Feb 2020 09:36:23 GMT</pubDate></item><item><title><![CDATA[Reply to Starting from Opera 64 onAuthRequired does not work for XHR requests on Wed, 20 Nov 2019 12:43:30 GMT]]></title><description><![CDATA[<p dir="auto">Is anybody reading these forum posts from Opera Devs? Or is this the wrong place for reporting Regression bugs.</p>
]]></description><link>https://forums.opera.com/post/189661</link><guid isPermaLink="true">https://forums.opera.com/post/189661</guid><dc:creator><![CDATA[[[global:former_user]]]]></dc:creator><pubDate>Wed, 20 Nov 2019 12:43:30 GMT</pubDate></item><item><title><![CDATA[Reply to Starting from Opera 64 onAuthRequired does not work for XHR requests on Mon, 18 Nov 2019 15:05:26 GMT]]></title><description><![CDATA[<p dir="auto">Any update on this? This seems to be a significant bug at least for extension which use this kind of auth.</p>
]]></description><link>https://forums.opera.com/post/189395</link><guid isPermaLink="true">https://forums.opera.com/post/189395</guid><dc:creator><![CDATA[[[global:former_user]]]]></dc:creator><pubDate>Mon, 18 Nov 2019 15:05:26 GMT</pubDate></item></channel></rss>