Skip to content

Commit 37e21c4

Browse files
authored
include credentials in fetch to pathdb
1 parent b55dfc7 commit 37e21c4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

common/PathdbMods.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ async function PathDbMods() {
9797
var url = `/idlookup/${collection}/${study}/${specimen}/${slide}?_format=json`
9898
return fetch(url, {
9999
mode: "cors",
100+
credentials: 'include',
100101
headers: new Headers({
101102
'Authorization': 'Bearer ' + getCookie("token"),
102103
})
@@ -114,6 +115,7 @@ async function PathDbMods() {
114115
var url = "/node/" + id + "?_format=json"
115116
return fetch(url, {
116117
mode: "cors",
118+
credentials: 'include',
117119
headers: new Headers({
118120
'Authorization': 'Bearer ' + getCookie("token"),
119121
})

0 commit comments

Comments
 (0)