request referrer when downgrading from https to http

[email protected] Fri, 26 Feb 2016 02:43:21 -0800 (PST)
Newsgroups gmane.comp.mozilla.devel.netlib
Message-ID <[email protected]>
Hi,

For an internal addon, I'm trying to track the referrer (or origin) of every request. I couldn't find a way to do it for http requests coming from https.

Since it's for internal use, any configuration change or method is usable. 

I tried using "channel.getProperty("docshell.internalReferrer")" on "http-on-modify-request", but the property never exists.


Is there any method to get it?