cross domain reading data from browser storage

cross-domain, javascript, jquery, jstorage

Solution

This article has some information related to cross-domain storage. It offers "the basic technique of using an iframe to access another domain's `localStorage` object."

Problem

I am trying to store data with a unique ID into the browser's storage, from say `a.com` using jStorage and jQuery. I am then trying to read the data using the unique ID from, say `b.com`. But `jStorage.get('UniqueID')` is not working, and it's not showing the desired output. Can anyone help me with reading browser storage cross-domain?

Original source