[Vuejs]-Using cookies with axios and Vue

0👍

The problem has been resolved. I was using the wrong syntax for the axios call

The correct syntax has the {withCredentials: true} as the last parameter

  this.axios.post(uri, this.sfdata, {withCredentials: true})
    .then( () =>   {
      this.$router.push( {name : 'home' });
    })
    .catch( () => {
    });

Leave a comment