Let's say I have two tabs, each of which contains a web page loaded in a different domain. Pages in two tabs want to communicate.
The simplest solution I could see is this one (my answer to a close question I found when looking for duplicates), where one or both pages load an intermediate iFrame page that proxies between postMessage() and localStorage . However, this requires this page to be hosted somewhere, and an additional client request.
Are there any methods for this that do not require a specialized "proxy page" to serve one of the domains? (Ie, which can be implemented by the JavaScript library without a supporting server?)
javascript local-storage cross-domain postmessage
cloudfeet
source share