C# 访问IInternetHostSecurityManager::GetSecurityId方法以解决跨域iframe问题
经过大量研究,似乎在IE中的web浏览器控件中创建并使用了我们自己的安全管理器。我们需要覆盖IInternetHostSecurityManager和IInternetSecurityManager的GetSecurityId方法,因为在某个点对它们进行比较,如果发现返回不同的结果,它们会抛出UnauthorizedAccess异常。是否有人成功覆盖IInternetHostSecurityManager。MSDN建议通过SID_SInternetSecurityManager访问它,但我没有找到任何其他对SID_SInternetSecurityManager的引用。此外,我还没有找到IIInternetHostSecurityManager的guid,因此无法通过IServiceProvider.QueryService访问它。任何一个成功绕过此问题或在webbrowser控件中找到访问跨域iFrame的不同方法的人?IID\u IInternetHostSecurityManager、SID\u SInternetSecurityManager和SID\u SinternetThostSecurityManager在urlmon.h和urlmon.idl中定义。如果C++中有链接错误,请检查.< /P> 如果您使用的是脚本语言,则可以使用它从urlmon.idl生成类型库,然后导入类型库。您还可以根据urlmon.idl中的定义声明GUID和接口C# 访问IInternetHostSecurityManager::GetSecurityId方法以解决跨域iframe问题,c#,security,browser,cross-domain,C#,Security,Browser,Cross Domain,经过大量研究,似乎在IE中的web浏览器控件中创建并使用了我们自己的安全管理器。我们需要覆盖IInternetHostSecurityManager和IInternetSecurityManager的GetSecurityId方法,因为在某个点对它们进行比较,如果发现返回不同的结果,它们会抛出UnauthorizedAccess异常。是否有人成功覆盖IInternetHostSecurityManager。MSDN建议通过SID_SInternetSecurityManager访问它,但我没有找