chore(dicomweb-client): Switch to dicomweb-client.js to push logic out of OHIF

This commit is contained in:
Erik Ziegler committed 2018-10-04 11:40:48 +02:00
1 parent 45c5867663
commit 89d97a7a3a
58 files changed
+256 -542

No files matched your search

+3 -3
View File
@@ -22,10 +22,10 @@ Meteor.startup(function() {
cornerstoneWADOImageLoader.configure({
beforeSend: function(xhr) {
const accessToken = OHIF.user.getAccessToken();
const headers = OHIF.DICOMWeb.getAuthorizationHeader();
if (accessToken) {
xhr.setRequestHeader("Authorization", `Bearer ${accessToken}`);
if (headers.Authorization) {
xhr.setRequestHeader("Authorization", headers.Authorization);
}
}
});