Cross Origin Request are only supported for protocol schemes?

107 views
Skip to first unread message

jamesa...@gmail.com

unread,
May 4, 2016, 11:28:09 PM5/4/16
to cornerstone platform
After finally getting dicom images to local from the local file system, I decided to use cornerstoneWADOImageLoader to load an image from the localhost (wadouri example). I downloaded the cornerstoneWADOImageLoader from github and ran it on the server. The default image from cornerstonetech works fine, but I can't get it to load something from my localhost. I am using apache xampp.
What I entered was: wadouri:http://localhost/magix_images/IM-0001-0001,  in the load image textbox but got this error:

I have already tried the ff:
- adding Header set Access-Control-Allow-Origin "*" to my httpd-conf file under <directory> tags
- adding alot of other things to httpd-conf file after the above didn't work, which also did not work. 
- starting chrome --disable-web-security
- placed the imageloader inside magix_images 

I'm not sure what exactly what I'm missing here. Any help is appreciated. Thanks in advanced!

Chris Hafey

unread,
May 5, 2016, 8:29:32 AM5/5/16
to cornerstone platform
Are you running your web app from the file system (e.g. double clicking your HTML file)?  You will get this error if you do that - instead serve it up from a web server

jamesa...@gmail.com

unread,
May 6, 2016, 10:53:35 PM5/6/16
to cornerstone platform
Fixed it by adding .dcm extension to the URL and hosting on my localhost, thanks Chris.
Reply all
Reply to author
Forward
0 new messages