Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Complex cross domain scripting

I have the following scenario, a user on domain1.com opens a new window on domain2.com. Domain2 contains a pretty complex web app where the user can browse and select documents. When the user is done searching for the right document he want's to send the select document back do domain1 and close the window. Is this possible in any way? I guess JSONP is not good enough because the response is not immediate?

like image 526
marcus Avatar asked Sep 08 '26 08:09

marcus


1 Answers

Use message API to communicate between the windows

There is a library for cross-browser implementation.

like image 71
Maxim Krizhanovsky Avatar answered Sep 09 '26 20:09

Maxim Krizhanovsky



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!