send cred on request
This commit is contained in:
parent
108caa0baa
commit
70dda7f895
1 changed files with 1 additions and 1 deletions
|
@ -52,7 +52,7 @@ const Navbar = () => {
|
|||
|
||||
useEffect(() => {
|
||||
window
|
||||
.fetch("/api/user-data")
|
||||
.fetch("/api/user-data", { credentials: "same-origin" })
|
||||
.then((data) => data.json())
|
||||
.then((data) => {
|
||||
setIsLoggedIn(true)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue