That HTML Blog & The Spicy Web on Nostr: One of the oldest and cruftiest APIs in #JavaScript involves cookies. In fact, can ...
One of the oldest and cruftiest APIs in #JavaScript involves cookies. In fact, can you really even say there's an "API" for cookies when it's literally just a string property on `document`?
Wouldn't it be nice if we had a more modern #WebDev API to use for setting, reading, and deleting cookies?
Introducing the Cookie Store API:
https://thathtml.blog/2025/01/cookie-store-api/Published at
2025-01-03 01:42:51Event JSON
{
"id": "13f7ca5cf9ee753671347832ce23fa5a61704f8838a2ffb95d3d52abd93cc9f9",
"pubkey": "068eeff8ef4beda7db7281fa9900148f36effc98656d96ac2a23bc4568a8bf14",
"created_at": 1735868571,
"kind": 1,
"tags": [
[
"t",
"javascript"
],
[
"t",
"webdev"
],
[
"proxy",
"https://intuitivefuture.com/users/vanillaweb/statuses/113761882728829671",
"activitypub"
]
],
"content": "One of the oldest and cruftiest APIs in #JavaScript involves cookies. In fact, can you really even say there's an \"API\" for cookies when it's literally just a string property on `document`?\n\nWouldn't it be nice if we had a more modern #WebDev API to use for setting, reading, and deleting cookies?\n\nIntroducing the Cookie Store API:\n\nhttps://thathtml.blog/2025/01/cookie-store-api/",
"sig": "c117fdadb6562e0ff3b54c7635e0810d5dfaf5f8d3e7de83b7177318a81425e3508755b592f1e63beb9fd5c7bef5457f0cd00a3c5a0591a3ce262125321bb863"
}