Remove unnecessary CORS proxy scripts (LT-165). Update to Meteor 1.4.1.1
This commit is contained in:
1 parent
ed8bb26fa4
commit
8ec58015ce
14 files changed
+83
-168
No files matched your search
@@ -1,20 +0,0 @@
|
||||
// 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);
|
||||
});
|
||||
@@ -1,20 +0,0 @@
|
||||
// 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:8080',
|
||||
auth: 'user:user'
|
||||
}).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);
|
||||
});
|
||||
@@ -1,20 +0,0 @@
|
||||
// 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(8042);
|
||||
|
||||
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);
|
||||
});
|
||||
@@ -1,20 +0,0 @@
|
||||
// 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);
|
||||
});
|
||||
@@ -1,11 +0,0 @@
|
||||
#!/bin/bash
|
||||
echo "Retrieving docker default machine IP address..."
|
||||
MACHINEIP=$(docker-machine ip default)
|
||||
echo "Copying nodeCORSProxy.example to nodeCORSProxy.js"
|
||||
cp nodeCORSProxy.example nodeCORSProxy.js
|
||||
sed -i '' "s/localhost:8042/$MACHINEIP:8042/g" nodeCORSProxy.js
|
||||
echo "Installing node http-proxy from npm..."
|
||||
npm install http-proxy
|
||||
echo "Running proxy server..."
|
||||
echo "In a separate tab/terminal, go to /main and run ./bin/orthancDICOMWeb.sh to start the Meteor server"
|
||||
node nodeCORSProxy.js
|
||||
Reference in new issue
Block a user