Search code examples
serverheaderdicom

Set headers correct for DICOM server to communicate with my Angular 5 application


I currently am working to retrieve a DICOM file by using my Angular application. The problem is that I cannot retrieve any data since No 'Access-Control-Allow-Origin' header is present on the DICOM server. I am cheating with a enable CORS extension in chrome to debug the data but in the end I will need to set those headers right. Does anyone know how to set the correct headers on my DICOM server? It runs on a wildfly server and it is set up by this link link to dcm4chee setup.

The error can be seen in the image below enter image description here


Solution

  • I added headers in the wildfly itself as you can see in the image below. This is located in the standalone.xml file in the wildfly directory. The headers contained to allow all, giving my application access to it.

    enter image description here