error: "idpiframe_initialization_failed", details: "Not a valid origin for the client code example

Example 1: Error: Missing credentials for "PLAIN"

var email_smtp = nodemailer.createTransport({      
  host: "smtp.gmail.com",
  auth: {
    type: "login", // default
    user: "[email protected]",
    pass: "PASSWORD_HERE"
  }
});

Example 2: request-promise-native error RequestError: Error: unable to verify the first certificate

request.post({url: "https://example.com", "rejectUnauthorized": false}, form)
   .on('response', function(response) {

   if (response.statusCode === 200) {
     console.log("DONE");
   } else {
     console.log("FAIL");
   }
});