|
@@ -22,7 +22,7 @@ const axiosInstance = axios.create({
|
|
|
axiosInstance.interceptors.request.use(
|
|
axiosInstance.interceptors.request.use(
|
|
|
function(config) {
|
|
function(config) {
|
|
|
config.headers = config.headers || {};
|
|
config.headers = config.headers || {};
|
|
|
- let token = localStorage.getItem('token');
|
|
|
|
|
|
|
+ let token = sessionStorage.getItem('token');
|
|
|
if (token) {
|
|
if (token) {
|
|
|
config.headers['Authorization'] = 'Bearer ' + token;
|
|
config.headers['Authorization'] = 'Bearer ' + token;
|
|
|
}
|
|
}
|