Created
August 17, 2017 14:01
-
-
Save monkindey/7d6c99c9a4e915a5dd83726e3e27a18e to your computer and use it in GitHub Desktop.
csrf
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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