Haven\'t been able to find anything particular to this situation online so here i go... I need to set/get the cookies stored at \"first.com\" while browsing \"second.com\",
You could inject a script element into HEAD of the document with a callback that passes the cookie you need to whatever function needs it.
Something like:
And the page first.com/doAjax?getCookie could do this:
passCookie({'name':'mycookie', 'value':'myvalue'});