Похожие чаты

#ASK How to provide a JWT token authorization header in vue

js ?? when you have logged in successfully then save the token in local storage, then when you want to load the v_read.vue file, you must enter the authorization headers first

this is my code
https://pastebin.com/dGCPyVEh

3 ответов

4 просмотра

window.axios.defaults.headers.common['Authorization'] = 'your token'

A. F
still not able

axios.get('/api/...').then(...) If dosen't work, rebuild the project and clear the cache.

Похожие вопросы

Обсуждают сегодня

Карта сайта