XMLHttpRequest: Network Error 0x80070005, Access is denied with VueJS

I have a website build with VueJS on front and Java on back. The website requires to be logged in to see the content.

On Firefox, IE and Chrome the login works perfect, but on Microsoft EDGE I get this error when I call the login method:

SCRIPT7002: XMLHttpRequest: Network Error 0x80070005, Access is denied.

This is the login method.

login() {
  axios.post('/login', this.user,
    {'headers':{'X-AUTH-TOKEN': localStorage.token}},
    {'headers':{'Content-Type': 'application/json'}})
    .then((response) => {
      alertify.set('notifier','delay', 3);
      alertify.success("Success! You are now logged in.");

      axios.get("/user", this.user)
      .then((response) => {
    .catch(function (error) {
      alertify.error('Invalid User');

I searched on the internet for solutions but what I tried didn’t worked.

This is the network on EDGE

This is the network on Chrome

Does someone know how to fix that error?

I suspect it has to do with the Access Control headers, but maybe not.

Do you know why the request method for Chrome is POST but for Edge it’s GET ?

I didn’t put the GET screen shot for Chrome(I have that for users), because I wanted to show that I have headers set on server, showing that in POST and also to show that I get back a response

In EDGE I don’t get a response(the POST is empty) so I have only GET to show.

Someone told me to enable local storage on Edge because that is the problem.

I followed this link to enable it but still I get the same error.

Stupid, stupid … I had no idea that EDGE will take the settings from Internet Explorer browser. I solve the problem after someone told me to do these settings in IE:

Internet Option
Security tab
Local intranet click “sites”
Add here your domain or localhost
Close IE
Open EDGE and test your domain or localhost nowt now

1 Like

I would have never thought of that. I have looked at Edge as being more of a clean break from IE. Though I figured some things might be importable this news makes it seem that Edge is more like a differently named IE 12 running a different engine than a completely different browser.

Believe me my friend that when someone told me to do those settings in IE I said to him:

  • Are you sure? Man is about Edge not IE !!!
    and when he insisted to do the settings in IE I still said
  • You will see it’s a waste of time, waste of time because Edge doesn’t have any connection with IE.

But surprise surprise Edge depends of IE settings. Stupid :slight_smile:

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.