I was using docker image ohif/viewer:v4.12.32.19362 in my DockerFile
Now, I want to use ohif/app v3.8.2 so I updated the DockerFile and the app-config.js file:
window.config = {
routerBasename: ‘/’,
modes: ,
extensions: ,
showStudyList: true,
// below flag is for performance reasons, but it might not work for all servers
showWarningMessageForCrossOrigin: true,
strictZSpacingForVolumeViewport: true,
showCPUFallbackMessage: true,
defaultDataSourceName: ‘dicomweb’,
filterQueryParam: false,
disableServersCache: false,
dataSources: [
{
namespace: ‘@ohif/extension-default.dataSourcesModule.dicomweb’,
sourceName: ‘dicomweb’,
configuration: {
friendlyName: ‘DCM4CHEE Server’,
name: ‘’,
wadoUriRoot: ‘/dcm4chee-arc/aets/DCM4CHEE/wado’,
qidoRoot: ‘/dicomweb/dcm4chee-arc/aets/DCM4CHEE/rs’,
wadoRoot: ‘/dicomweb/dcm4chee-arc/aets/DCM4CHEE/rs’,
qidoSupportsIncludeField: false,
supportsReject: false,
imageRendering: ‘wadors’,
thumbnailRendering: ‘wadors’,
enableStudyLazyLoad: true,
supportsFuzzyMatching: false,
supportsWildcard: true,
staticWado: true,
singlepart: ‘bulkdata,video’,
bulkDataURI: {
enabled: true,
relativeResolution: ‘studies’,
},
},
},
],
httpErrorHandler: (e) => {
console.warn(e.status),
console.warn(“test, navigate to https://ohif.org/”)
},
oidc: [
{
authority: ‘/realms/shanoir-ng’,
client_id: ‘ohif-viewer’,
redirect_uri: ‘/callback’,
response_type: ‘code’,
scope: ‘openid’,
post_logout_redirect_uri: ‘’,
revoke_uri: ‘https://accounts.google.com/o/oauth2/revoke?token=’,
automaticSilentRenew: true,
revokeAccessTokenOnSignout: true,
}
],
defaultDataSourceName: ‘dicomweb’,
};
I also added this in my ohif-viewer.template.conf:
add_header 'Cross-Origin-Opener-Policy' 'same-origin'; add_header 'Cross-Origin-Embedder-Policy' 'require-corp'; add_header 'Cross-Origin-Resource-Policy' 'cross-origin' always;
And finally, in my keycloak, I do have a ohif-viewer client (I didn’t change this and it was working with previous ohif/viewer)
I do not have any error in my console but nothing is displayed, the whole screen is black:
In addition to that, I can’t find any additional logs than what’s in the console, can I find those somewhere?
Can anyone help me ? Should I use another docker image ? Or another version ?
Thank you