t1
This commit is contained in:
1 parent
bdc2f08d38
commit
2c6e15e480
15 files changed
+230
-10
No files matched your search
@@ -45,9 +45,12 @@ axiosApiInstance.defaults.headers.common['Authorization'] = `Bearer ${localStora
|
||||
axiosApiInstance.interceptors.request.use(config => {
|
||||
const access = localStorage.getItem('access');
|
||||
if (access) {
|
||||
|
||||
config.headers = {
|
||||
'Authorization': `Bearer ${access}`,
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
return config;
|
||||
}, error => {
|
||||
|
||||
@@ -36,6 +36,7 @@ export default defineConfig({
|
||||
],
|
||||
},
|
||||
server: {
|
||||
host: '0.0.0.0',
|
||||
port: 3000,
|
||||
},
|
||||
})
|
||||
Reference in new issue
Block a user