Skip to content

Instantly share code, notes, and snippets.

@monkindey
Created August 17, 2017 14:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save monkindey/7d6c99c9a4e915a5dd83726e3e27a18e to your computer and use it in GitHub Desktop.
Save monkindey/7d6c99c9a4e915a5dd83726e3e27a18e to your computer and use it in GitHub Desktop.
csrf
const http = require('http');
const config = require('./config');
const port = config.port.injured;
const host = config.host;
http
.createServer((req, res) => {
console.log(req.headers.cookie);
res.writeHead(200, {
'Set-Cookie': host
});
res.end('hello world');
})
.listen(port, () => {
console.log(`The Sever at ${port}`);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment