Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] First Wado frame request is sent without Authorization header #4403

Closed
peterhedmansurlien opened this issue Oct 3, 2024 · 1 comment
Labels
Awaiting Reproduction Can we reproduce the reported bug?

Comments

@peterhedmansurlien
Copy link

peterhedmansurlien commented Oct 3, 2024

Describe the Bug

Hi,

I have implemented @ohif/app in an Angular project.

I set accesstoken to requests with this code:

const userAuthenticationService = window['services']?.userAuthenticationService;

userAuthenticationService.setServiceImplementation({
                getAuthorizationHeader: () => ({
                    Authorization: 'Bearer ' + this._oauthService.getAccessToken(),
                }),
            });

All request except the first frame request have the authorization header with my bearer token. The first frame request is also missing its preflight (OPTIONS) request.

First frame request (No authorization header):
image

I have in the backend disabled authorization thats why it's 200 (OK) in the image. Else I get 401 (Unauthorized) on this request

Second and onwards frame requests (Authorization header is set):
image

I have build project from V3.9.0-beta.92. When build from V3.9.0-beta.50 then I do not get this error.

Steps to Reproduce

na

The current behavior

First frame request do not have the Authorization header

The expected behavior

All WADO and QIDO requests should have Authorization header

OS

Mac

Node version

20.12.0

Browser

Chrome

@peterhedmansurlien peterhedmansurlien added the Awaiting Reproduction Can we reproduce the reported bug? label Oct 3, 2024
@peterhedmansurlien peterhedmansurlien changed the title [Bug] First Wado framerequest is sent without Authorization header [Bug] First Wado frame request is sent without Authorization header Oct 3, 2024
@peterhedmansurlien
Copy link
Author

As suggested here

Upgrading dicom image loader to latest version "@cornerstonejs/dicom-image-loader": "^1.84.4", solved the problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Awaiting Reproduction Can we reproduce the reported bug?
Projects
None yet
Development

No branches or pull requests

1 participant