mirror of
https://github.com/d0zingcat/cors-anywhere.git
synced 2026-05-13 15:09:25 +00:00
More documentation and options.
This commit is contained in:
@@ -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);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user