cornerstonejs / cornerstone

JavaScript library to display interactive medical images including but not limited to DICOM
https://docs.cornerstonejs.org/
MIT License
2.04k stars 598 forks source link

loadAndCacheImage token #571

Open gxjcoo opened 2 years ago

gxjcoo commented 2 years ago

How doi add token to loadAndCacheImage

No-Dream-No-Life commented 2 years ago

这是来自QQ邮箱的假期自动回复邮件。 您好,邮件我已收到,我将在看到后第一时间给您回复。

fyddaben commented 2 years ago

like this

cornerstoneWADOImageLoader.configure({
    beforeSend: function (xhr, imageId) {
      let timestamp = new Date().getTime()

      xhr.setRequestHeader('token', localStorage.getItem('token'))
   }
})