question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Facing CORS header error while integrating dcm4chee with OHIF viewer

See original GitHub issue

Hello! I am trying to integrate dcm4chee server in the OHIF viewer. I had success integrating this version of non secured dcm4chee which loaded my DICOM files properly.

But when I am trying to inegrate [this version of dcm4chee secured version] in the same way, I am having the following error.

Access to XMLHttpRequest at 'http://localhost:8080/dcm4chee-arc/aets/DCM4CHEE/rs/studies?limit=25&offset=0&fuzzymatching=false&includefield=00081030%2C00080060&StudyDate=19520727-20210106' from origin 'http://localhost:3000' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

I am configuring it the same way like with the non secured dcm4chee version, where it worked.

default.js ( in the secured version where I am getting the error):

        wadoUriRoot: 'https://<my-local ip>:8443/dcm4chee-arc/aets/DCM4CHEE/wado',
        qidoRoot: 'https://<my-local ip>:8443/dcm4chee-arc/aets/DCM4CHEE/rs',
        wadoRoot: 'https://<my-local ip>:8443/dcm4chee-arc/aets/DCM4CHEE/rs',

In this version, I get dcm4chee when I hit https://<my-local ip>:8443/dcm4chee-arc/ui2/

I am attaching a screenshot of the console: git1

  • I have checked the network pane and nothing is loading in the page.
  • Returns me a blank page

Any help with this? I have tried to access with web browser extensions, but that didn’t work either.

Thanks in advance.

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:1
  • Comments:5

github_iconTop GitHub Comments

1reaction
olivert1969commented, Feb 15, 2021

Hi @ptt-bs23 and @ricardophp, In your webserver configuration, suggest adding Access-Control-Allow-Origin configuration. For specific examples, see: https://docs.ohif.org/deployment/recipes/nginx--image-archive.html#cors-issues

0reactions
dem-vcommented, Oct 14, 2022

I was able to workaround this issue only by installing combined docker image of nginx + ohif + othanc and providing config for nginx from https://enable-cors.org/server_nginx.html

Read more comments on GitHub >

github_iconTop Results From Across the Web

DicomWeb CORS Error Loading Image in OHIF
This works as expected and stores the instances in S3. The problem occurs when I attempt to integrate the OHIF Viewer with this...
Read more >
OHIF
Facing CORS header error while integrating dcm4chee with OHIF viewer $ 0. Created 1 year ago in OHIF/Viewers with 5 comments. Hello! I...
Read more >
3D Slicer Documentation
Debian 10.12 users may encounter an error when launching Slicer: ... OHIF DICOM viewer is included as an example (available at http://localhost:2016/browse) ...
Read more >
Orthanc behind NGINX CORS Issue - help
Hi Everyone, I have integrated OHIF Viewer with Meteor and here we used ... the stored image in Orthanc Server, I am getting...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found