1

Having problems doing requests over invalid SSL from my browserify react app, I basically have this issue: https://github.com/request/request/issues/418 as I'm using request.

I have tried setting both strictSSL=false and rejectUnauthorized=false but it doesn't work.

The other solution was to set the environment variable NODE_TLS_REJECT_UNAUTHORIZED to 0. But I can't do that in my browserify/envify environment.

Help!

Mattias Farnemyhr
  • 4,148
  • 3
  • 28
  • 49

1 Answers1

0

Ok. It turned out that the strictSSL setting did work. The problem was that request depends on the node package https which was not included in the browserify bundle. So as soon as I added https to the build and set the strictSSL setting to false it worked perfectly. Hope that helped somebody else!

Mattias Farnemyhr
  • 4,148
  • 3
  • 28
  • 49