One of the APIs added in HTML 5 is localStorage. It is a simple storage that can be used within a specific site, but it is difficult to use only at one site. Sometimes you may want to use another site (especially subdomain).
I would like to use CrossStorage there. It is storage that can be used in cross domain.
How to use CrossStorage
I am using it. You can use localStorage in external domain.
Also from another domain.
CrossStorage requires one domain to become a hub. You can specify the domains that can be accessed, and you can set further permissions. And from the external domain it is a mechanism to exchange messages using iframes. The principle is simple but interesting.
CrossStorage is JavaScript open source software (Apache Licnese 2.0).
No comments:
Post a Comment