Add some WIP changes to Lesion Tracker dialogs

This commit is contained in:
Erik Ziegler committed 2015-12-09 14:26:11 +01:00
1 parent e4c24608af
commit da197368bf
37 files changed
+915 -595

No files matched your search

+20
View File
@@ -0,0 +1,20 @@
// This sets up a proxy to work around CORS.
// See http://chafey.blogspot.be/2014/09/working-around-cors.html
// For more information
var http = require('http'),
httpProxy = require('http-proxy');
var proxy = httpProxy.createProxyServer({
target: 'http://localhost:8042',
auth: 'orthanc:orthanc'
}).listen(8043);
proxy.on('proxyRes', function(proxyReq, req, res, options) {
// add the CORS header to the response
res.setHeader('Access-Control-Allow-Origin', '*');
});
proxy.on('error', function(e) {
// suppress errors
console.log(e);
});