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,
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!