CORS Restriction — Proxy Required
GHL blocks direct browser requests. Add this to your Render server, then set USE_PROXY = true and update PROXY_BASE:
app.get('/api/ghl-proxy', async (req, res) => {
const r = await fetch(req.query.url, { headers: { Authorization: 'Bearer ' + req.query.apiKey, Version: '2021-07-28' } });
res.json(await r.json());
});