cornerstoneWADOImageLoader
cornerstoneWADOImageLoader copied to clipboard
Wait until beforeSend header is returned before sending xhr request
In some cases, beforeSend method passes is asynchronous or returns a promise. For example, when the xhr request requires addition of an access token in the header and the retreival of the access token is done asynchronously, the beforeSend methos is therefore asynchronous. In this case, the current implementation does not wait for the header to be returned before sending the xhr request.
Deploy Preview for cornerstone-wado-image-loader failed.
Name | Link |
---|---|
Latest commit | 5f8cb2c010ad927b85fb4616e0be88c7660bb5f5 |
Latest deploy log | https://app.netlify.com/sites/cornerstone-wado-image-loader/deploys/62eb80c7772c030008b1654d |
with the code of your PR commit, the beforeSend is still sync
@wayfarer3130 Can you please look at this?