Files
ritmex-bot/docs/ccxt/examples/js/cors-proxy.js
T
2025-10-03 15:28:16 +08:00

6 lines
341 B
JavaScript

// JavaScript CORS Proxy
// Save this in a file like cors.js and run with `node cors [port]`
// It will listen for your requests on the port you pass in command line or port 8080 by default
let port = (process.argv.length > 2) ? parseInt (process.argv[2]) : 8080 // default
require ('cors-anywhere').createServer ().listen (port, '0.0.0.0')