https undefined in react native axios
问题 I have used axios for react native app but while implementing https.agent it shows https is undefined. How to solve this? My code const instance = axios.create({ httpsAgent: new https.Agent({ rejectUnauthorized: false }) }); instance.get('https://example.com'); // At request level const agent = new https.Agent({ rejectUnauthorized: false }); axios.post('/practz/login', { "username" :"orgadmin1@example.com", "password":"exam", "appId":"AABBCD", "domainName":"example.com", httpsAgent: agent })