vue2_frontend...

This commit is contained in:
최준흠 2022-09-19 12:34:45 +09:00
parent 7f1b37b4db
commit 2c327268cd

View File

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