cornerstonejs / cornerstone-nifti-image-loader

[Deprecated] Use Cornerstone3D Instead https://cornerstonejs.org/
MIT License
56 stars 27 forks source link

About nifti loader configure #25

Open kailin5 opened 4 years ago

kailin5 commented 4 years ago

Hi there,

I have tried to use jwt as authentication to get image from backend, however failed to do so, I used the code below, but it seems that it still is unauthorized, any idea about how to do this? cornerstoneNIFTIImageLoader.nifti.configure({ beforeSend(xhr) { xhr.setRequestHeader('Authorization', jwt); } }); Reference from wadoimageloader wadoImage loader https://github.com/cornerstonejs/cornerstoneWADOImageLoader/blob/master/docs/Configuration.md,

Any help will be highly appreciated!