Model output from public data and your ATAS exports. A decision aid, not investment advice.
Yahoo, TradingView and Google News block direct browser requests, so the site fetches them through your Cloudflare Worker (already set below). Fed and Treasury data load directly. Only change this if you move the Worker. Put {url} where the target URL goes.
export default {
async fetch(req) {
const target = new URL(req.url).searchParams.get('url');
const ok = /^https:\/\/(query[12]\.finance\.yahoo\.com|fred\.stlouisfed\.org|news\.google\.com|scanner\.tradingview\.com|economic-calendar\.tradingview\.com|nfs\.faireconomy\.media)\//;
if (!target || !ok.test(target)) return new Response('blocked', { status: 403 });
const headers = { 'User-Agent': 'Mozilla/5.0' };
if (target.includes('tradingview.com')) headers.Origin = 'https://www.tradingview.com';
const r = await fetch(target, { headers });
const h = new Headers(r.headers);
h.set('Access-Control-Allow-Origin', '*');
return new Response(r.body, { status: r.status, headers: h });
}
};
CFTC (COT) and Binance (BTC) connect directly; they don't need the proxy.