Skip to content

Commit

Permalink
Merge pull request #40 from JNU-econovation/FE
Browse files Browse the repository at this point in the history
feat: credentials 설정 추가
  • Loading branch information
capDoYeonLee authored Apr 8, 2024
2 parents 178fc17 + 4f8e25b commit f5ca17c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions FE/error/src/components/CheckModal/DeleteEvent.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ const DeletEvent = ({ events, setEvents, selectID }) => {
const calendarDelete = () => {
const instance = axios.create({
baseURL: `${import.meta.env.VITE_ERROR_API}`,
withCredentials: true,
});
instance
.delete("/api/calendar/" + selectID)
Expand Down
1 change: 1 addition & 0 deletions FE/error/src/components/CreateModal.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ const CreateModal = ({ isOpen, onRequestClose, selectedDate }) => {
"Content-Type": "application/json",
},
body: JSON.stringify(data),
credentials: "include",
})
.then((response) => response.json())
.then((data) => {
Expand Down
1 change: 1 addition & 0 deletions FE/error/src/components/EconoCalendar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ const EconoCalendar = () => {
useEffect(() => {
const instance = axios.create({
baseURL: `${import.meta.env.VITE_ERROR_API}`,
withCredentials: true,
});
instance
.get("/api/calendar/all/2024-04-05")
Expand Down

0 comments on commit f5ca17c

Please sign in to comment.