Skip to content

Commit

Permalink
Disabling certificate validation
Browse files Browse the repository at this point in the history
  • Loading branch information
caputomarcos committed Apr 6, 2023
1 parent 9ac3c1a commit db2ea07
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions oauth2.js
Original file line number Diff line number Diff line change
Expand Up @@ -242,9 +242,9 @@ module.exports = function (RED) {
const response = axios.post(options.url, options.form, {
headers: options.headers,
proxy: node.proxy,
httpsAgent: node.rejectUnauthorized
? new https.Agent({ rejectUnauthorized: true })
: new https.Agent({ rejectUnauthorized: false }),
httpsAgent: new https.Agent({
rejectUnauthorized: node.rejectUnauthorized,
}),
});
return response;
};
Expand Down

0 comments on commit db2ea07

Please sign in to comment.