const customAxios = axios.create({
headers: {
Authorization: `Bearer ${sessionStorage.getItem("userToken")}`,
}
});
콘솔 Application - Session Storage

콘솔 Application - Session Storage
'백엔드' 카테고리의 다른 글
| mongoose.Schema에 new를 붙이는 이유 (0) | 2023.07.04 |
|---|---|
| mongodb에서 useNewUrlParser, useUnifiedTopology 쓰는 이유 (1) | 2023.07.01 |
| 노드 회원가입, if else문 중복 값 전송에러. Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client (0) | 2023.06.22 |
| index.js에는 어떤 내용이 들어가야 할까? (0) | 2023.06.22 |
| mysql2, post 중복가입 막기(같은 이메일로 가입 못하게 하기) (0) | 2023.06.22 |