Skip to content

Instantly share code, notes, and snippets.

@atomsfat
Created November 22, 2016 19: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 atomsfat/73a5883693b1391b596a44bbc209f1ff to your computer and use it in GitHub Desktop.
Save atomsfat/73a5883693b1391b596a44bbc209f1ff to your computer and use it in GitHub Desktop.
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