4 ms·
Workaround: encode your app's state into window.location.hash
by Jach 7y ago
Workaround: encode your app's state into window.location.hash
- withinboredom 7y agoI've seen this before on an ecommerce site :sigh: Wife: Hey, check out this! [link with embedded state] Me: Wow, I'm logged in as you and can even see your payment information! Let's not buy from this site! Let's not do this. Ever.
- recursive 7y agoNot all data is sensitive data.
- icebraining 7y agoThat works as long as the user keeps the tab open, but if they use a bookmark (or just remember the domain), the hash part will be lost.
- Jach 7y agoThe hash part is not lost to bookmarks, unless Apple broke that too. If it was, no one's MEGA bookmarks would work.
- icebraining 7y agoI mean, sure, the bookmark would save a snapshot, but the user would have to manually replace it every time. Might be simpler to just give them a file to save / load.