Every line of 'axios https agent' code snippets is scanned for vulnerabilities by our powerful machine learning engine that combs millions of open source libraries, ensuring your JavaScript code is secure.
3 export function getAgent(url, apiPath): https.Agent { 4 const isDev = process.env['WOLEET_ID_SERVER_PRODUCTION']; 5 if (isDev) { 6 const agentOptions = { 7 host: url.host, 8 path: url.pathname + apiPath, 9 rejectUnauthorized: false 10 }; 11 return new https.Agent(agentOptions); 12 } 13 }
Secure your code as it's written. Use Snyk Code to scan source code in minutes – no build needed – and fix issues immediately. Enable Snyk Code
17 function HttpsOcspAgent(options) 18 { 19 return HttpsAgent.apply(this, arguments); 20 }