0๐
โ
I finally found a way to get it working. I changed the VM network setting back to Bridged Adaptor and changed localhost
to the VMs IP in my server call from Vue.
this.$http.post('http://192.168.1.x:3000/login', {
email: this.email,
password: this.password,
})
-1๐
Have you tried to allow all headers?
app.use(cors());
Source:stackexchange.com