How to set current document.domain in WebBrowser Control to avoid "Access Denied" in cross-domain calls (XMLHTTP requests or iframe / frame access)?
I tried
CurrentDocument = WebBrowserControl.Document CurrentDocument.domain = "example.com" Console.writeline("xx" & CurrentDocument.domain)
It doesn't work anyway it never reaches console.writeline
Am I doing something wrong? Or should I use WebBrowserControl.ActiveXInstance ?
source share