Created
August 24, 2023 16:02
-
-
Save mauriciord/c9a7157bf12c18b6035c2de27a34461a to your computer and use it in GitHub Desktop.
allow legacy server openSSl error
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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