Not found because of proxy error: AggregateError

Author: dragon731012Created Apr 19, 2024Updated Oct 28, 2024

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.