Troubleshooting Authorization Header Issues in OHIF Integration

Hey @alireza @ohif,

After making the following change:

getAuthorizationHeader = () => {
  const xhrRequestHeaders = {};
  const authHeaders = userAuthenticationService.getAuthorizationHeader();
  if (authHeaders && authHeaders.Authorization) {
    xhrRequestHeaders.Authorization = authHeaders.Authorization;
  }
  xhrRequestHeaders.Authorization = `Bearer ${dcm_token}`;
  return xhrRequestHeaders;
};

I am now able to hit the studies API for the secured DCM4CHEE, but I’m receiving a 401 Unauthorized response when calling this API:

/dcm4chee-arc/aets/DCM4CHEE/rs/studies/1.3.6.1.4.1.5962.1.1.0.0.0.1194732126.13032.0.1/series/1.3.6.1.4.1.5962.1.1.0.0.0.1194732126.13032.0.2/instances/1.3.6.1.4.1.5962.1.1.0.0.0.1194732126.13032.0.10/frames/1

Could you assist me in properly passing the token for this API as well?

Thanks!