I'm making a simple web server with Node.js and Express. I'm hosting many static files, including a Unity WebGL game.
For the game to work properly, many assets need to be loaded. Is there some kind of easy way I could store a cookie with a password (on a login page), and if the password cookie is present and has the right value, all requests are accepted?
Still very new to web server stuff, all I've done so far is Discord bots.
So basically all I'm trying to do is have a simple password page (and maybe have some kind of a delay when it checks if the password is correct) and then let you load things in one folder.
Hope that's easy to do. Sorry if my question is dumb.