Cross-domain cookie pass

148 views
Skip to first unread message

handloomweaver

unread,
Jan 10, 2012, 6:02:29 AM1/10/12
to easyxdm
I'm really not wanting to piss anyone off. I am a beginner. I've only
been programming for a year (python) and have done very little
JavaScript/DOM ever. I really learn by examples. In
http://www.slideshare.net/SlexAxton/breaking-the-cross-domain-barrier
Alex Sexton mentions a method to access cross-domain cookies via
iFrames and he mentions easyXDM. But I can't find any example in the
easyXDM examples that shows how to do this? That might be laughable
but I'm a noob and not embarrassed by that. Everyone has to learn.

My use case is that I need to grab the cookie from a domain I don't
have control over so I can pass it to a server. It sounds dodgy but I
have the permission of the site, they are just clueless, small
business and have outsourced IT and web developers who are long gone.
So it's a temporary solution. I need on my page to load a page (or
script?) from the other domain in the background (iframe? where does
easyXDM come in here?) read the cookie and pass the cookie value to my
page to post to the server.

I know it's a pain, but I'm trying to learn.

Can someone take some time out of their busy lives to post an example?

kindest thanks anyway
AL

Øyvind Sean Kinsey

unread,
Jan 12, 2012, 1:25:41 AM1/12/12
to eas...@googlegroups.com
This is not possible without the support of the site mentioned, if it was then there would be no security on the internet.

I wouldn't use easyXDM for this - go for something simpler like a simple redirect (you load a page on their domain, they redirect to your site with the cookie value in the url or something).
But think about the security of this...
Reply all
Reply to author
Forward
0 new messages