Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
axios configuration to disable certificate verification
import axios from 'axios';
import https from 'https';
axios.create({
baseURL: 'https://localhost:3001',
httpsAgent: new https.Agent({
rejectUnauthorized: false,
}),
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.