Closed kongdetai closed 6 years ago
Does the browser console give you more details on the error?
I would say that the access method is GET. Not sure if a more generic configuration such as the one suggested by enable-cors.org for nginx could help to.
Nginx could do this, I config successfully! Thank you for your help and wonderful job about DWV!
Could you share the config you used and what was the problem?
Closing for now. Feel free to comment if you can share the working config.
Sorry, These days so busy! The problem is some js file can not be load, but use 80 port can load these file!
server {
listen 80; //must be 80 port !
server_name your_domain;
location / {
add_header 'Access-Control-Allow-Origin' '*';
add_header 'Access-Control-Allow-Credentials' 'true';
add_header 'Access-Control-Allow-Methods' 'POST';
proxy_pass http://localhost:8080/; //DCM4CHEE address
}
location /api/ {
proxy_pass http://your API address:8080/api/;
}
}
Thanks!
I got the same error on #393 and #392
error massage: RequestError: An error occurred while reading 'flower.dcm' (http status: 0) [DicomDataLoader].
I got a local pasc server DCM4CHEE and I used it with DWV followed https://github.com/ivmartel/dwv-dcm4chee-web/wiki 1.the DCM4CHEE version is 2.18.1-mysql.
the DCM4CHEE server port is 8080.
then I used nginx config:
then I visited http://localhost:8800/ goto DCM4CHEE normally, but I got error when I goto see the dicom on DWV:
How should I config it?
Looking forward for your reply!
Thank you very much!