vue2_frontend...

This commit is contained in:
최준흠 2022-09-19 12:35:30 +09:00
parent 2c327268cd
commit fd6b75ce16

View File

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