I have the following code, which is run from a express server:
import fetch from \'node-fetch\';
let formBody = [];
const dataLogin = {
\'username\': \'
If you want to disable SSL check while using AXIOS library, add agent to its call in this way
// At instance level
const instance = axios.create({
httpsAgent: new https.Agent({
rejectUnauthorized: false
})
});
instance.get('https://something.com/foo');
// At request level
const agent = new https.Agent({
rejectUnauthorized: false
});
axios.get('https://something.com/foo', { httpsAgent: agent });