0

This code on MS Edge returns a "SCRIPT7002: XMLHttpRequest: Network Error 0x80070005, Access denied." error:

firebase.auth().signInWithEmailAndPassword(email, password).then(function(user) {

}, 
function(error) {
    // this is executed with auth/network-request-failed error code
});

It works on Chrome and Firefox and it's intended to be embedded in a WebView of an UWP app, so it's running locally.

Luccas Clezar
  • 1,032
  • 10
  • 18

1 Answers1

1

Please ensure you have checked the Private Networks (Client & Server) capability in UWP app's Package.appxmanifest file. Ref: Enable device capabilities

This is also been mentioned in here: WinJS.xhr: Network Error 0x2efd, Could not complete the operation due to error 00002efd

enter image description here

And there may be SSL certificate valdiation issue, please check out this answer: https://stackoverflow.com/a/33095348/5254458

---Update(03/24/2017)---

We created a firebase web application and found the same exception in IE Edge on Windows 10 Build 14393. There are lots of feedbacks on this in here.

Based on internal message, this issue has been fixed from OS build 14951(Or earlier). We confirmed that this has been resolve on Windows Insider Preview Build 15058.0, see screenshot:

enter image description here

Welcome to join Windows insider and try the latest insider preview SDK.

Community
  • 1
  • 1
Franklin Chen - MSFT
  • 4,845
  • 2
  • 17
  • 28
  • Thanks for the answer. I had already tried to check Private Networks and it didn't solve the problem. About the SSL certificate, I don't know which certificate I have to add in the project. Could you explain this? – Luccas Clezar Mar 23 '17 at 17:35
  • Thanks for the info @FranklinChen-MSFT! That sounds right because my OS version is 14393.953. But I'm not sure about upgrading to Preview because this is my work station, is Insider stable enough to work with it? And if not, do you know when this update is going stable? – Luccas Clezar Mar 24 '17 at 17:48
  • 1
    @LuccasClezar If you need to ensure the stable experience, I would suggest you waiting for Windows 10 Creators Update, it is coming soon https://www.microsoft.com/en-us/windows/upcoming-features You could install a Insider preview virtual machine to experience new features – Franklin Chen - MSFT Mar 25 '17 at 13:36
  • 1
    @LuccasClezar Just check the latest Release Preview version 15063.11, everything works well. The Windows 10 Creators Update is on its way:) – Franklin Chen - MSFT Apr 03 '17 at 07:08
  • Hey @FranklinChen I can confirm that the issue is fixed on Edge, but I couldn't test it on a WebView yet because of another problem... But as I think that it should be solved (because UWP uses Edge rendering... right?) I'll mark the answer as accepted – Luccas Clezar Apr 12 '17 at 22:37
  • 1
    @LuccasClezar UWP WebView use the same rendering engine as Edge:) https://learn.microsoft.com/en-us/uwp/api/windows.ui.xaml.controls.webview#remarks – Franklin Chen - MSFT Apr 13 '17 at 01:23