Skip to content

Commit

Permalink
include credentials in fetch to pathdb
Browse files Browse the repository at this point in the history
  • Loading branch information
birm authored Jan 9, 2025
1 parent b55dfc7 commit 37e21c4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions common/PathdbMods.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ async function PathDbMods() {
var url = `/idlookup/${collection}/${study}/${specimen}/${slide}?_format=json`
return fetch(url, {
mode: "cors",
credentials: 'include',
headers: new Headers({
'Authorization': 'Bearer ' + getCookie("token"),
})
Expand All @@ -114,6 +115,7 @@ async function PathDbMods() {
var url = "/node/" + id + "?_format=json"
return fetch(url, {
mode: "cors",
credentials: 'include',
headers: new Headers({
'Authorization': 'Bearer ' + getCookie("token"),
})
Expand Down

0 comments on commit 37e21c4

Please sign in to comment.