cross-domain

alternative to cross-domain javascripting ?

currently i am relying on a proxy script to handle this problem of Single Origin Policy. it is slow, and creates overhead. Not to mention, javascript is not rendered. is there a working alternative out there? ...

need to run javascripts on iframe which loads an external domain.

mysite.com has an iframe which loads some differentsite.com. need to run javascript on this loaded iframe document. Single Origin Policy kicks in. i resort to using proxy. its slow, creates bottleneck, unable to fully render the site (JS is not rendered). Alternatives ? ...

Utilising one database across two websites on different domains

What's the best way to have two websites (asp.net based) running on different domains but using the same database ? Would it be a good idea to have the database on one of the domains and have the other one access it via a web service ? ...

How do I fix this cross-domain ActionScript 3 error?

I'm going to be as specific and verbose as possible and include some of the code I'm using. I already did a search and found this question, which seems similar; however the author there was using ActionScript 2 instead of 3, and I couldn't seem to apply any of the answers given to my own situation effectively. I am trying to emulate (in...

Detect browser support for cross-domain XMLHttpRequests?

I'm working on some Javascript that makes use of Firefox 3.5's ability to perform cross-domain XMLHttpRequests… But I'd like to fail gracefully if they aren't supported. Apart from actually making a cross-domain request, is there any way to detect a browser's support for them? ...

Still having issues with my cross domain policy in Silverlight 3.0

So I'm using both xml files listed below with no luck. They both exist in the root of my IIS hosted web service on a different web server (behind the firewall). The web service is a simple POX like service that returns a JSON string. Also I'm trying to get access to this service from a cassini run project on my local machine (to test ...

Document.Domain madness

I've spent probably a month researching the internet on this issue and have yet to find the answer to this. My code does the following (all Javascript). Let's say I have a test.html on mydomain.com Very first thing in head section i set document.domain = 'mydomain.com'; Then, dynamically create iframe, set src to "subdomain.mydomain.c...

Why is my Twitter web request bombing out?

I've been working my way through Tim Heuer's Silverlight tuturial, in which you set up a basic interface to search Twitter. I started on the tutorial yesterday, completing through Step 3. It all was working fine. Now, though, I can't call Twitter without getting a "System.Security.SecurityException" error in the OpenReadCompleted handler...

Mod-rewrite rule for external pages?

Hi, Is it possible use mod_rewrite to resolve addresses hosted on another server? Say I want to setup this URL: http://www.myserver.com/myfolder/ To actually resolve to: http://www.anotherserver.com/anotherfolder/ If so, could you provide a RewriteRule example? -thanks ...

Dynamic Javascript appending with location.href attribute and ajax-cross-domain.com script.

After assigning this: window.onload = initfunction; I want to append the AJAX cross domain script to the header: function initfunction() { var dh = document.getElementsByTagName('head')[0]; var script = null; script = document.createElement('script'); script.setAttribute('src', 'http://whatever.com/cgi-bin/ACD/ACD.js?'+location.hr...

Cross Domain Authentication using DataBase and GUID

I have 2 sites that are on different servers and domains but I would like to pass from one to the other with out having to re-authenticate. Both sites use the same DB so my thought was have an Auth Table where I place a GUID, the users ID, and a time stamp. I would pass the GUID in the URL and do a lookup to see if the GUID is in the ...

Sending data using Jquery Iframes

I want to send large amounts of data to and from 2 domains (e.g. Cross Domains) I was told the best way to do this is to use IFrames. My question is... How do I go about doing this. Is this what google does ??? Is this the best practice??? How can I better learn about this stuff. ...

Can I use XMLHttpRequest on a different port from a script file loaded from that port?

I have website that use XMLHttpRequest (jQuery, actually). I also have another site running on the same server, which serves a script file that makes XHR requests back to THAT site, ie. http://mysite:50000/index.html includes <script src="http://mysite:9000/otherscript.js"&gt;&lt;/script&gt; and http://mysite:9000/otherscript.js incl...

AG_E_NETWORK_ERROR when loading a remote Image in SIlverlight

I have a ListBox that gets populated with items read from a JSON response. Each item has an Image control that displays the thumbnail at the remote URL given by the Thumbnail property. I created a custom IValueConverter to convert the URL to a BitmapImage, but the image still didn't display. So I finally realized that I could capture loa...

AS3 accessing other domains

I have a AS3 swf that scrapes google images for a search query and displays some of the results. It works locally, but when the swf is on a server it can't access google. I've tried Security.allowDomain, but it doesn't work. Any suggestions? ...

Cross Domain error for Sliverlight component in SharePoint 2007 Online

I have completed 'Integrating Microsoft Silverlight with a SharePoint Online Page' from the SharePoint developers guide and it gets a cross-domain error. I understand CrossDomain issues with Silverlight but I have two concerns: the guide makes no mention of requiring a crossdomain.xml or clientaccesspolicy.xml file which makes me think ...

Javascript security / cross scripting on same server

Hello, Have some Javascript that I need to work via the following: ://localhost ://servername :/www.domainnamefortheserver.com When I run the script from http://servername with an IFRAME referencing the domain - it does not load. Is there a way to get the Javascript security model to recognize the server name, localhost and the dom...

Are cross-domain favicons a security risk?

I have a site of user-submitted news articles, and an idea I had for a feature was to grab the favicon on the target site to display along with the link. The methodology for grabbing the favicon would be checking for the favicon.ico file on the target server. Would displaying that icon as an image open any hole? Could there be some so...

Javascript Div remote server cross domain populating

hello, i'd like to put in html pages around a javascript that call a remote javascript file in my server, elaborate datas by give content back to the html page where the javascript will populate a div by id with the given data. what's a possible way to perform it? the data will be calculated in php. ...

Access to 127.0.0.1 by default in Opera 10?

Unlike other browsers (IE, FF, Chrome) Opera 10 doesn't allow websites to access content from localhost. Only when 127.0.0.1 is explicitly added to the trusted websites list in Opera does this work - all other browsers don't need this. Any suggestions on how I can either programatically add this to the trusted sites list in Opera (unlik...