Understanding how Embeddables stores user data in the browser
Feature | Local Storage | Cookies |
---|---|---|
Storage Capacity | 5-10MB | 4KB |
Expiration | Doesn’t expire automatically | Can be set to expire |
Sent with Requests | No, stays in browser | Yes, sent with every HTTP request |
Accessibility | Same-origin only | Can be configured for cross-origin |
Manipulation | JavaScript only | JavaScript or HTTP headers |