What kind of uri are considered insecure by CanvasHttp?

aetherus_zhou
Community Novice

Currently I'm creating an adapter that provides Kaltura-ish API and uploads videos to an on-premises server. The problem is that no matter what kind of logFileUrl I return in the response of bulkUpload.add API, CanvasHttp always raises CanvasHttp::InsecureUriError (I'm testing on localhost and gives it variable domain names via /etc/hosts).  What kind of uri are considered insecure by CanvasHttp? Why localhost and 127.0.0.1 are considered insecure?