Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Simple sever to debug header and url behind proxies
var express = require('express');
var app = express();
app.get('/*', function (req, res) {
console.log(req.originalUrl)
console.log(req.headers)
res.send('Hello World!');
});
app.listen(8090, function () {
console.log('Example app listening on port 8090!');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.