I have two websites http://example1.com/ and another say http://example2.com/
A Javascript event click on example1.com/ will open a popup of example2.com/ , doing some operations i want to pass some data back to example1.com say with GET and detect it using jQuery or Javascript, not with PHP.
If data is authenticated it will invoke a event in example1.com.
I have tried using $.getJSON , curl from example2.com. but i either can't catch the data through my JS library or getting a CORS Error.
Example of such a behavior would be Facebook comment box, where after authentication Comment Box displays image and name of the person logged in.