vue2_frontend...

This commit is contained in:
최준흠 2022-09-19 12:33:30 +09:00
parent e2a9b7bcdc
commit 7f1b37b4db

View File

@ -12,7 +12,7 @@ const interceptor = (instance) => {
(config) => {
const token = tokenService.getAccessToken()
if (token) {
config.headers['Authorization'] = 'Bearer ' + token // for Spring Boot back-end
config.headers{ Authorization: `Bearer ${token}` } // for Spring Boot back-end
config.headers['x-access-token'] = token // for Node.js Express back-end
}
return config