Hi,
I spent hours trying to get this to work and experiencing CORS errors as described above. I found an error in the authentication URL in the section for OHIF app-config.js.
It should be: Â Â Â authority: '
https://localhost:8843/realms/dcm4che',
(note the removal of auth in the URL)
So the section to add to your OHIF app-config.js (after the datasources section) is as follows:
 oidc: [
  {
   // ~ REQUIRED
   // Authorization Server URL
   authority: 'https://<host ip address>:8843/realms/dcm4che',
   client_id: 'ohif-viewer',
   redirect_uri: 'https://<host ip address>:3003/callback', // `OHIFStandaloneViewer.js`
I'm running OHIF using SSL on port 3003. You may need to adjust this.
You also need to configure an OIDC client called "ohif-viewer" in Keycloak, see other posts on this forum about how to do that.
Hope that helps
Andy