const https = require('https'); const agent = new https.Agent({ // BAD: TLS verification disabled rejectUnauthorized: false }); async function fetchData() { return fetch('https://api.example.com', { agent }); }