Marek Knápek@lemmy.worldtoLemmy.World Announcements@lemmy.world•Lemmy.world (and some others) were hackedEnglish
1·
2 years agothis might even be a solved problem by now
Yes, it is called HttpOnly
and is decided by the server who is sending the cookie to you in HTTP response header. I believe there are also HTTPS-only cookies that when received via HTTPS, cannot be used from HTTP, but I cannot find it right now.
It changes all the time (once per year) if you finally managed to remember it, it changes again.