Add authorization header in ajax process.
const token = 'eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJpc3MvXC9yZW5ld9fQ.hGyUlcvaRfLhiaaQAqQg';
const authorization = `JWT ${token}`;
axios.defaults.headers.common["authorization"] = authorization;
const authCodeResult = await axios.post()
'Develop > Vue' 카테고리의 다른 글
Force file download (2) | 2018.08.07 |
---|---|
[NUXT] error on IE browser (1) | 2018.04.05 |