Rob--W / cors-anywhere

CORS Anywhere is a NodeJS reverse proxy which adds CORS headers to the proxied request.
MIT License
8.5k stars 5.92k forks source link

Not found because of proxy error: AggregateError #482

Open dragon731012 opened 3 months ago

dragon731012 commented 3 months ago

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.