How to suppress “This page is accessing information not under its control”

别说谁变了你拦得住时间么 提交于 2019-12-28 06:28:05

问题


I get this message when I am trying to access a web service from Jquery located in SAME the URL (but different directory).

I know it is IE security setting. The question is, how do I suppress it...surely, people don't put web services in the same web site, same directory....


回答1:


In case this is helpful for someone running Visual Studio 2013. I had upgraded my Visual Studio from 2010 to 2013 and then started seeing the seurity warning.

Using Fiddler I found that VS 2013 kept sending arterySignalR requests.

I turned this off by setting the following in the web.config under appSettings

<add key="vs:EnableBrowserLink" value="false" />

which caused the security warning to go away.




回答2:


I know this is caused because of 'Cross-domain data access' which I have enabled by

jQuery.support.cors = true;

In my Ajax call I had to specify jsonp as my data type to fix the issue.

$.ajax({                    
           url: "xxx",                    
           dataType: "jsonp",
           ...
       });



回答3:


Faced this today and resolved it by changing IE setting and updated the release notes for my application(in case someone needs that)

Goto Internet Option -> Security -> Internet -> Custom Level -> Miscellaneous(navigate to this section) -> Access Data sources across domains -> Set this to Enable




回答4:


That is a significant security risk that should never be set to enable – there is a large class of attacks online that rely on that being set to Enable; leaving it at prompt reduces the availability of that attack vector…




回答5:


I faced this problem in my HTA (on win 7), and got it fixed by un checking the options below:

IE (8) -> Tools -> Internet Options -> Advanced

Under the title Security:

Warn about certificate address mismatch
Warn if changing between secure and not secure mode

After doing this, my HTA didn't ask me again with the popup..



来源:https://stackoverflow.com/questions/1890565/how-to-suppress-this-page-is-accessing-information-not-under-its-control

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!