const http = require('http'); const server = http.createServer((req, res) => { res.setHeader("Set-Cookie", `authKey=${makeAuthkey()}; secure; httpOnly`); res.writeHead(200, { 'Content-Type': 'text/html' }); res.end('

Hello world

'); });