Our build script creates a HTML log with some embedded javascript. When I open that in Internet Explorer, I get the yellow warning bar that IE has blocked running "scripts or activex controls".
Since it is a local file, I cannot add it to trusted sites (IE expects a domain here).
I do not want to change security settings for the default zone.
Any idea how to permanently unblock it?
IE version is 7.0.5730.13 on XP Pro.
Probably not what you want to hear but I'm not sure you can. Does Firefox/Opera/Safari complain when you run it in any of those? If it works then that seems like the simplest solution to me.
You could add The Mark of the Web to the document so that IE will act as if it's from a certain security zone.
You can always enable ActiveX. I've tested this on Internet Explorer 11, but should work on earlier version of IE:
Tools > Internet Options > Advanced > Security :
Another option, if it's only IE you need to view it in is to save it as a .hta file.
This makes it a HTML application.
It's as simple as changing the suffix to .hta. Although there are other options you can specify.
For more info:
http://msdn.microsoft.com/en-us/library/ms536496(VS.85).aspx
You could set up a local server and save such files in a domain you can now add to the trusted sites, but opening the file in any other browser than IE is easier.
Embed the Mark of the Web: