Hello, as you can see from the title, I am trying to add cookies to my website. The only reason I am trying to do it is so I can set up a offense (Really I am just gonna ban people who break rules) operation.
Hi, it depends on your backend. To set a cookie, the server sends a response header called Set Cookie.
You can Google ‘express set cookie’ or replace express in the search query with Fastify if you’re using one of the the new starters.
I don’t know if a way to do this with static sites on Glitch unfortunately.
Let us know how it goes.