This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Satellizer's storage service can use 'localStorage' and 'sessionStorage' by default. | |
None of these options work well if you need to use Satellizer with or across subdomains. | |
(Given, there is the fun iframe and postMessage workaround, but that's really inconvenient.) | |
Here's a simple approach using cookies for storage, which can be used across subdomains | |
(since cookies can be used across subdomains, right?). | |
By default, $http is configured with withCredentials set to false, so the cookies themselves |