How do I set a Referer (HTMLViewer) ?

I saw in the docs how to set a UserAgent, but failed to get the way to set a Referer in a HTMLViewer.

Is it possible within Xojo ?

Xojo’s HTMLViewer is very limited, you cannot add custom Internet Headers.

I found an answer using JavaScript that compiles, but I do not know if it really works, yet:

delete window.document.referrer; window.document.__defineGetter__('referrer', function () { return "yoururl.com"; });

BTW: I just noticed that referer is noted referrer… and since I do not have Xojo handly…

I put the above JavaScript into a string and called it using HTMLViewer1.ExecuteJavaScript (from memory).