I was getting the security alert-- "This page is accessing information that is not under its control. This poses a security risk. Do you want to continue?"
I added this script to my code---
<script type="text/javascript">
var myCallback = function( myParam ) {
alert( "this was called across domains!" );
};
</script>
<script type="text/javascript" src="http://crossdomainhost/CrossDomainConsumerSite/Default.aspx?callback=myCallback¶m=myParam></script>
My website got crashed.Does anyone has a solution to this?
The best way is not to run javascript from an external site. Copy the script to your own server or don't use it.
This error message helps to reduce the risk of cross-site scripting and you probably don't want to be using any site that gives this message. You certainly don't want this to be your site!