adding https permission.
removed console log.