cross-domain

How do you call Python code from C code?

I want to extend a large C project with some new functionality, but I really want to write it in Python. Basically, I want to call Python code from C code. However, Python->C wrappers like SWIG allow for the OPPOSITE, that is writing C modules and calling C from Python. I'm considering an approach involving IPC or RPC (I don't mind ha...

PHP Sessions across sub domains

I am trying to set up the following: auth.domain.com sub1.domain.com sub2.domain.com where if the user visits sub1.domain.com or sub2.domain.com and they are not logged in, they get pushed over to auth.domain.com and can log in. sub1.domain.com and sub2.domain.com are two separate applications but use the same credentials. I tried se...

Are different ports on the same server considered cross-domain? (Ajax-wise)

Can XMLHttpRequest send a request to http:// mydomain.com:81/ from http:// mydomain.com/ ? ...

What exactly can an IFrame do with the top.Location object (cross-domain)?

There is a very particular edge case in cross-domain policies regarding the window.top.Location object... Let's say I have IFrame A , in domain www.xxx.com, living inside a page in domain www.aaa.com. The page inside the IFrame can: Compare window.top.location to window.location (to detect whether it's being framed) Call window.top...

Why would javascript code not be able to access variables in the window that opened it (window.opener) if both windows are from the same domain?

I'm trying to use the Facebook Connect Javascript API. I have a Facebook login button on subdomain.example.com/foo/bar/baz/article.html. Clicking on the button opens a login page on Facebook's domain. After you log in, that child window goes to subdomain.example.com/foo/xd_receiver.html, which is a file that Facebook provides that just h...

Set session for different domains from the same server?

Does anyone know whether I can set a session value for the current domain, and use this session for another domain? For example: when I set session in domain www.aabc.com and I wish this session to work in domain www.ccc.com as well -- I click a button in www.aabc.com and change the header to www.ccc.com? ...

Nested iframe cross-domain communication

Here are two cases: Uppercase as one domain while lowercase as another 1.Suppose window A holds iframe b, and b holds iframe C, A & C in one domain(higher privacy) while b in another. Is there any direct way for communication between A & C, oneway or twoway. 2.Suppose A holds iframe b and iframe c, A is in one domain while B & C in other...

js: Load html of a page from a different domain.

Hello guys, i was wondering how can i load the html code of a page, hosted on a different domain? I am using javascript, and want to create a bookmarklet that will enable me to parse the external html code. i have been googling for hourse in vain... thank you very much ...

FireBug and monitoring JSONP cross-domain requests

This question is specific to the Firebug plugin for Firefox. The actual functionality works, but I lost my ability to monitor and debug it in Firebug. I had a website which used JSON to get data. In Firebug, I was able to monitor the JSON requests. It would show me each one of them, the headers, and the data that was returned. I needed...

Make two servers talk to each other

I have application written in GWT and hosted on Google AppEngine/Java. In this application user will have an option to upload video/audio/text file to the server. Those files could be big, up to 1gb or so and because GAE/J does not support large file I have to use another server to store those files. This would be easy to implement if th...

Cross Domain JavaScript, parent location setting in embedding iframe case

Hi, There is a solution called "Fragment Id Messaging" to solve cross domain communication by setting parent.location with extra texts followed by "#" from child iframe, it works. However, if the parent itself is embedded as an iframe in another page, parent.location setting seems denied by browsers... Is this true? If yes, is there a w...

Cross Domain JavaScript parent location setting firefox error

Here is the case: page A contains iframe B, B contains iframe C, A and B are under the same domain, C under another. C tries to reset parent B's location with extra information following "#" to solve cross domain communication using Fragment Id Messaging. IE6/7/8 just works fine with this case, while Firefox blocks parent.location settin...

Iframe and cross domain requests

If I have a page served from foo.com which has an IFrame served from bar.com, then can a script inside the IFrame make an XMLHttpRequest to bar.com? Also say that the IFrame from bar.com requests additional pages, then in the server, the referrer of these requests would point to bar.com or foo.com? ...

How to use Pixel Tracking across domains in PHP

I understand the basics of pixel tracking, I'm able to insert a pixel that references an image on my tracking domain to other websites. However, how do I increment that actual pixel count on my tracking domain? Is there some kind of log that tells me every time that pixel image was served up? Am i able to do something like: <img src...

Cross-Domain Posting in ASP.Net loses Form Fields

I have 2 ASP.Net applications in a solution. One is pretty much a testing harness for a 3rd party app that POSTs data into the primary application. I tried to mimic this functionality by doing a basic HTML form and setting the action to point to the main application; however, the Request.Form NameValueCollection was empty. I tried doi...

Rails - Dynamic cookie domains using Rack

I'm fairly new to Rails and Rack, but this guy had a seemingly straightforward write-up about using Rack to implement dynamic session domain middleware. The code looks good to and I've implemented it here on my local machine, but I'm still not able to transcend top level domains on a single login. Here's the middleware code: class SetC...

Any feeback on the lib Ajax-Cross-Domain and the Jquery patch ?

Looking for a way to get non JSON data from foreign domain using Ajax, we found the http://www.ajax-cross-domain.com/ lib and the http://dev.jquery.com/ticket/3342 Jquery patch. Did anybody try them ? ...

Cross site scripting(XSS)

I am loading content from another page and depending on the content of page, changing content of my page and this is giving me cross site scripting issues. When i use iframe, since the content is from other domain, content of iframe becomes inaccessible. When i use ajax and try to inject the content as plain html code, XmlHttpRequest o...

Cross-domain data access in JavaScript

We have an ASP.Net application hosted on our network and exposed to a specific client. This client wants to be able to import data from their own server into our application. The data is retrieved with an HTTP request and is CSV formatted. The problem is that they do not want to expose their server to our network and are requesting the i...

How to pass a variable from one app domain to another

Hello. I'd like to know, if I have a variable,for example, a string, how to pass its value to my new app domain: static string _str; static void Main(string[] args) { _str = "abc"; AppDomain domain = AppDomain.CreateDomain("Domain666"); domain.DoCallBack(MyNewAppDomainMethod); AppDomain.Unload(domain); Console.Write...