0👍
Olá, você precisará adicionar um header a requisição do axios, dessa forma:
const headers = {
'Content-Type': 'application/json',
'Authorization': 'Bearer fefege...'
}
//Dados
const data = {...}
const response = await axios.post('api/users/register', data, {
headers: headers
})...
- [Vuejs]-Laravel 9: how to open a modal window from a Vue component?
- [Vuejs]-V-for list diseapears after a second
Source:stackexchange.com