More documentation and options.

This commit is contained in:
Rob W
2013-01-03 20:02:43 +01:00
parent b7ba441712
commit 2cf2300afb
3 changed files with 173 additions and 106 deletions

View File

@@ -2,6 +2,10 @@ var host = '127.0.0.1';
var port = 8080;
var cors_proxy = require("./lib/cors-anywhere");
cors_proxy.createServer().listen(port, host, function() {
cors_proxy.createServer({
requireHeader: 'x-requested-with',
withCredentials: false,
removeHeaders: ['cookie', 'cookie2']
}).listen(port, host, function() {
console.log('Running CORS Anywhere on ' + host + ':' + port);
});