// Listen on a specific host via the HOST environment variable
var host = process.env.HOST || '0.0.0.0';
// Listen on a specific port via the PORT environment variable
var port = process.env.PORT || 8080;
var cors_proxy = require('cors-anywhere');
cors_proxy.createServer({
originWhitelist: [], // Allow all origins
requireHeader: [],
removeHeaders: []
}).listen(port, host, function() {
console.log('Running CORS Anywhere on ' + host + ':' + port);
});
it works for all sites except the one I am trying to access.
My code:
// Listen on a specific host via the HOST environment variable var host = process.env.HOST || '0.0.0.0'; // Listen on a specific port via the PORT environment variable var port = process.env.PORT || 8080;
var cors_proxy = require('cors-anywhere'); cors_proxy.createServer({ originWhitelist: [], // Allow all origins requireHeader: [], removeHeaders: [] }).listen(port, host, function() { console.log('Running CORS Anywhere on ' + host + ':' + port); });
it works for all sites except the one I am trying to access.