Sharing a local storage object across a web-app and a Chrome extension
google-chrome-extension, javascript, local-storage
Solution
You can use both `localStorage` and cookies.
If you inject a content script in the web app's page, its `localStorage` is shared with domain's own storage. You can then communicate with your background script to pass information.
If you include `"cookies"` permission in your manifest, you can manipulate cookies using `chrome.cookies` API.
Edit: You can also make your extension externally connectable from the web app to maintain synchronization of the changes.
Problem
I need to store a users profile and his preferences in a localStorage object \ cookies in a way that they'll be accessible(readable) and writable from both the web-app, and the chrome extension (that are basically part of the same product). I found this cool library and this article that specifies how to use it. The problem is that xauth.org is down, and so is the server page that is required to use the library. Any alternatives