[Vuejs]-Cannot make post request using devise token auth

0👍

It turns out that it was how I post data with axios. I should have the data before the headers:

axios.post('url', <data-to-post>, <headers>)

Instead, I was only sending the params and not the headers. Problem solved.

Leave a comment