cross-domain

P3P Headers in ASP.NET

Hi Guys, I am implementing a solution basically for x-domain sign in using iFrames. So its like domain A.com is served into an iFrame in Domain B.com with the aim that a user who is logged in a Domain A.com is also logged into B.com iframe. At the moment - its working fine in FF and Chrome - but IE is causing me headaches. So I have a ...

X-Domain Cookies in iFrames

Hi Guys, I have a domain A.com which is my website. I want to allow the user to login and then I have embedded an iframe into domain B.com which attempts to grab the cookie from A.com to allow the user to be continued to be signed in. I can't seem to get this working in IE ? A new session gets set instead and the cookie is never retrie...

Cross-Domain Cookie Problem

Hi Guys, I have a domain A.com [my website] and a remote website B.com which integrates an iframe from my domain [A.com] with a piece of javascript. I want to share cookies across these domains [within the iframe]? How would I go about doing this so it works properly? I thought A.com and B.com are in the same-origin policy ? ...

Get Xml Data Cross-Domain with JQuery

Hey guys, is there a way to load XML Data Cross-Domain with JQuery (= client side)? $.get('http://otherdomain.com/data.xml', function(xml) { } The above doesn't work - do I have to rely on JSONP, or is there a way to load XML? ...

X-Domain and P3P Headers

Hi, I have a website A.com and a domain at B.com with a widget inside an iframe getting data from A.com. I want to allow x-domain cookies to be passed from a.com to inside the iframe using ASP.NET My understanding is that - I can do this in IE using P3P Headers - such that the A.com cookie is passed to the iframe and session | cookie d...

Send XML String as Response

Hello All, I am getting my Request from a third party application(different domain) to my ASP application. I am handling the request and doing the business part in my application and as a acknowledgement I need to send XML string as Response to the same Page which POSTED the request to my Application. I was successful in retrieving the...

Recreating Cookies on another Domain

Hi, I have a site on A.com and an iframe on B.com which reads info from A.com. I realize that there is some problems with third party cookies, iframes and P3P - particularly in Safari [my problem] Is it possible to instead, use AJAX or a hidden iFrame to pass the cookie information from A.com to B.com which will then "recreate" anothe...

Cross domains sessions - shared shopping cart cross domains

Hi, we are solving the problem with eshop (php, mysql). The client want to have the same eshop on two domains with shared shopping cart. In the shop customer can do the shopping without users account (can't be logged in). And there is the problem, how to make the shared shopping cart cross domain. The data from cart is stored in sessi...

IE History Tracking, IFRAMES, and Cross Domain error...

So here's the deal. We have a Flash application that is running within an HTML file. For one page we call a legacy reporting system in ASP.NET that is within an IFRAME. This page then communicates back to the Flash application using cross-domain scripting (document.domain = "domain" is set in both pages. THIS ALL WORKS. Now the kick...

Cross Domain RSS (XML) Client Side Only Solution?

Assuming my conditions for building a RSS feed reader were I had to provide only a Javascript snippet. The RSS is cross domain and is only XML. What are my options and how can I implement them? thanks ...

Iframe permission denied error when developing locally: what are my options?

Here's what's going on: I have an application A hosted on a.mycompany.com and an application B hosted on b.mycompany.com Application A contains an iframe containing a page contained in the application B. <!-- In A's index.html: --> <iframe src="http://b.mycompany.com/something.html" > I need to have either the parent talk to the ifr...

How do you remove the script tag added by cross-domain ajax?

I am using the JSONP/dynamic-script-tag technique to perform cross-domain AJAX (There's no XML, but you know what I mean). Initially, I wrote my own solution, but I could not come up with an elegant way to remove the script after it executed. My strategy was just to pass an ID and on the callback remove the associated script, but I real...

Accessing the location object of an external script from the external script

Here's an interesting JS q... suppose you have: host1.html on host1.com which references an external javascript (host2.js) on host2.com. In the host2.js, I'd like to get the location.hostname of the host serving the host2.js, but because host2.js is called inside of host1.html, it returns the location.hostname of host1. Is there a way...

Client-side Twitter API method using XMLHttpRequest?

Does (or did) Twitter ever have a method in their API that allowed client-side HTTP requests without producing any cross-domain issues? I have a site that used the following url: http://search.twitter.com/search.json?q=from%3adaleyjem&amp;rpp=3&amp;page=1&amp;callback=? It once worked, but now it doesn't. Is there something else I shou...

html widget communicating with server

I'm making html widget for websites. Let's say, it will display current stock indexes. In short, arbitrary website owner takes code snippet from me and includes it on his webpage http://website.com/index.html. When arbitrary user opens http://website.com/index.html, my code sends request to my server (provider.com), which performs necess...

WCF REST with jQuery AJAX - removing/working around same origin policy

So I'm trying to create a C# WCF REST service that is called by jQuery. I've discovered that jQuery requires that AJAX calls are made under the same origin policy. I have a few questions for how I might proceed. I am already aware of; 1. The hacky solution of JSONP with a server callback 2. The way too much server overhead of having a ...

Silverlight 4 WebRequest, SSL and Credentials

Hi, I've got the following code: public void StartDataRequest() { WebRequest.RegisterPrefix("https://", System.Net.Browser.WebRequestCreator.ClientHttp); WebClient myService = new WebClient { AllowReadStreamBuffering = true, ...

Get the content from iframe of external url

I need to get the content(Complete html) of a page (say.: someotherdomain.com/somepage) loaded in iframe from an asp.net mvc (C#) application without using webclient or httpwebrequest. ...

execute javascript function in a another iframe when parent is from different domain.

The page A.com has 2 iframes B.com/page1 and B.com/page2. This is the code of A.com: <html><body> <iframe src="b.com/page1" name="iframe1" id="iframe1"> <iframe src="b.com/page2"> </body></html> I want to execute js function on B.com/page1 from B.com/page2. Both examples below works well when the parent is from the same domai...

How do I disable silverlight cross-domain content protection for WriteableBitmap

Hi all, I have an Esri map in silverlight and I am trying to get a screenshot. However, I am facing cross-domain content protection for writeablebitmap, saying "Pixels are not accessible". Is there a way that I can disable this? or any other work around in silverlight 3 or 4? ...