cornerstonejs / cornerstone-nifti-image-loader

Nifti image loader module for cornerstone/ohif viewer
MIT License
56 stars 27 forks source link

About nifti loader configure #25

Open kailin5 opened 3 years ago

kailin5 commented 3 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!