axios.js 281 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 export default function ({$axios, store}) { $axios.onRequest((config) => { console.log('axios cookie 요청', store.state.user.cookie); const cookie = store.state.user.cookie; if(cookie){ config.headers.common['Authorization'] = `Token ${cookie}`; } }) }