Update core.js

Checking if rejectUnauthorized is defined or not, possible value for rejectUnauthorized is true or false.