getsentry / sentry-javascript

Official Sentry SDKs for JavaScript
https://sentry.io
MIT License
7.97k stars 1.57k forks source link

Allow rejectUnauthorized on httpstransport #2046

Closed sangamk closed 1 year ago

sangamk commented 5 years ago

Package + Version

Version:

5.1.0

Description

Currently we are only able to send messages to our sentry server by setting:

process.env.NODE_TLS_REJECT_UNAUTHORIZED = '0';

I would like to make this more specific to sentry by setting rejectUnauthorized: false during initialization.

This was possible in the old raven client: transport: new raven.transports.HTTPSTransport({rejectUnauthorized: false})

Is this possible in Sentry?

HazAT commented 1 year ago

Closing - PRs welcome :)