From 2f57c6c54bceb7d1be061d6f37b501dd6a58eaa4 Mon Sep 17 00:00:00 2001 From: Osmium Sorcerer Date: Tue, 7 Apr 2026 02:55:26 +0000 Subject: Replace cookies with localStorage Cookies's use case is to store persistent data and send it to the server in subsequent requests, such as to remember logged-in sessions. WebAO is using them to store site settings like ad-hoc hash tables that require parsing and serialization. As a nasty side-effect of how cookies work, clients send all their settings every time they connect to the server. Server has absolutely no use for them, but each client sends them anyway, which is an uncalled-for privacy leak. Remove this mechanism entirely, switch to localStorage which serves exactly the purpose of per-origin store with data that never leaves the browser. --- public/client.html | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'public/client.html') diff --git a/public/client.html b/public/client.html index 85dc118..90fc41b 100644 --- a/public/client.html +++ b/public/client.html @@ -948,12 +948,10 @@ >

- Changing these settings will save them as a cookie.
- By doing so, you agree to it being saved.
- If you don't agree, disable cookies for this site in your - browser.
+ + Changing these settings will save them locally in your browser.
+ Saved settings are never transmitted. +