Reputation:
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) => {
AuthPlugin.getToken(response.data);
alertify.set('notifier','delay', 3);
alertify.success("Success! You are now logged in.");
axios.get("/user", this.user)
.then((response) => {
this.$router.push('/home');
AuthPlugin.setUser(this.user.username);
})
})
.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?
Upvotes: 2
Views: 3403
Reputation: 5503
My first guess is that you need to enable local storage on Edge rather than it being a network problem.
Upvotes: 1