const http = require('http');
const server = http.createServer((req, res) => {
res.setHeader('Set-Cookie', 'session=meetcode123; HttpOnly; Path=/');
res.writeHead(200, { 'Content-Type': 'text/plain' });
res.end('Cookie set');
});
server.listen(3004, () => console.log('http://localhost:3004'));
const http = require('http');
const server = http.createServer((req, res) => {
res.setHeader('Set-Cookie', 'session=meetcode123; HttpOnly; Path=/');
res.writeHead(200, { 'Content-Type': 'text/plain' });
res.end('Cookie set');
});
server.listen(3004, () => console.log('http://localhost:3004'));