Skip to content

Commit 9acc3dd

Browse files
fix: add withcredentials
1 parent b7ba535 commit 9acc3dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

calc-frontend/src/App/RootLayout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ function RootLayout() {
1919
const requestSession = async () => {
2020

2121
try{
22-
const response = await axios.get(serverUrl + '/api/session')
22+
const response = await axios.get(serverUrl + '/api/session', { withCredentials: true })
2323

2424
console.log(response)
2525
}

0 commit comments

Comments
 (0)