security-zone

How to disable “ActiveX Control May Be Unsafe” popup

落爺英雄遲暮 提交于 2020-06-09 11:26:07
问题 In an HTML file on My Computer, I'm trying to use the Scripting.FileSystemObject in a script. How can I disable the popup saying "Any ActiveX control on this page may be unsafe for scripting"? The "Internet Options" Security pane allows one to set "Initialize and script ActiveX controls not marked as safe for scripting" to Enabled for various zones, but files on the local computer don't appear to be in any of the listed zones. So I guess the alternate question is "How can I edit the security

Get current/active security zone of a .NET application?

风流意气都作罢 提交于 2020-01-21 07:13:23
问题 I have an application that behaves oddly, and just to verify, I'd like to see which security zone it is currently running under. I've found the System.Security.SecurityZone enum, but can't seem to find anything that will return which of these I'm running under. Does anyone have any tips? Basically I want to find out if my application is running in MyComputer, Intranet, Internet, Untrusted, Trusted, etc. Edit: Here's the minor test-app I wrote to find this code, thanks to @blowdart. using

window.opener becomes null in Internet Explorer after security zone change

爷,独闯天下 提交于 2019-12-24 04:06:19
问题 My application runs in Local Intranet zone which launches a popup. This popup opens another page in my application (Local Intranet zone) which redirects to an authentication page (Internet zone) which after successful authentication sends back to my application page ( Local Intranet zone). However, at the final page, window.opener becomes null and I can't call methods on parent page. This doesn't happen when all pages load from the same zone. Is there a way around this behavior so that I can