Skip to content

Instantly share code, notes, and snippets.

@mauriciord
Created August 24, 2023 16:02
Show Gist options
  • Save mauriciord/c9a7157bf12c18b6035c2de27a34461a to your computer and use it in GitHub Desktop.
Save mauriciord/c9a7157bf12c18b6035c2de27a34461a to your computer and use it in GitHub Desktop.
allow legacy server openSSl error
axios.defaults.httpsAgent = new https.Agent({
// for self signed you could also add
// rejectUnauthorized: false,
// allow legacy server
secureOptions: crypto.constants.SSL_OP_LEGACY_SERVER_CONNECT,
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment