0

My cors is set and i can also see bearer token when i make request but i m unable to sort out what is the issue in my code or which thing is missing whenever i make post request i get unhandled promise exception with status 419 please help me guys thank you.

    updateuser() {   
    var data={
    username:this.firstname,
    lastname:this.lastname,
    email:this.email,
    role:this.role,
    status:this.status
    }
    this.$http.post('users/update',data).then(function(response){
    this.$router.go()
  })
  .catch(error => {
  console.log(error)
 });
Iqbal Butt
  • 196
  • 2
  • 15

0 Answers0