Skip to content

HELMAB/share-localstorage-cross-domains

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LocalStorage/SessionStorage between different domains

Share data between multiple domains (for example an auth token) can be somehow hard as we all know that all browser side data storage APIs (Localstorage, cookies etc.) are related to one specific domain.

Solution:

Use an iframe to save the data in localStorage, and then the other domains ask the iframe for what we already saved.

Structure

Credit

Thank to Mokhles El Heni

About

LocalStorage/SessionStorage between different domains

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages