sentry-javascript icon indicating copy to clipboard operation
sentry-javascript copied to clipboard

Allow rejectUnauthorized on httpstransport

Open sangamk opened this issue 5 years ago • 0 comments

  • [x] Review the documentation: https://docs.sentry.io/
  • [x] Search for existing issues: https://github.com/getsentry/sentry-javascript/issues
  • [x] Use the latest release: https://github.com/getsentry/sentry-javascript/releases

Package + Version

  • [ ] @sentry/browser
  • [x] @sentry/node
  • [ ] raven-js
  • [ ] raven-node (raven for node)
  • [ ] other:

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?

sangamk avatar May 01 '19 12:05 sangamk