enable cross-site scripting

Add-in Express™ Support Service
That's what is more important than anything else

enable cross-site scripting
 
Peter T




Posts: 3
Joined: 2013-04-03
when I inject script to open popup window in IE, an error message appears "internet explorer has modified this page to help prevent cross-site scripting". Is there an option where I can prevent this error and enable cross-site scripting?
Posted 08 Apr, 2013 19:27:47 Top
Sergey Grischenko


Add-in Express team


Posts: 7233
Joined: 2004-07-05
Hi Peter,

Do you inject the javascript via the IHTMLScriptElement object as shown below?

mshtml.IHTMLScriptElement scriptObject =
(mshtml.IHTMLScriptElement)HTMLDocument.createElement("script");
scriptObject.type = @"text/javascript";
scriptObject.text = scriptText;
parentElement.appendChild((mshtml.IHTMLDOMNode)scriptObject);
Posted 09 Apr, 2013 08:40:19 Top