mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-03-09 15:40:18 +00:00
Added HTTP header tracing.
This commit is contained in:
parent
04cd5236d3
commit
3249d727b8
5 changed files with 73 additions and 39 deletions
|
@ -4971,6 +4971,9 @@ module.exports.CreateWebServer = function (parent, db, args, certificates) {
|
|||
|
||||
// Add HTTP security headers to all responses
|
||||
obj.app.use(function (req, res, next) {
|
||||
// Useful for debugging reverse proxy issues
|
||||
parent.debug('httpheaders', req.headers);
|
||||
|
||||
// Set the real IP address of the request
|
||||
// If a trusted reverse-proxy is sending us the remote IP address, use it.
|
||||
var ipex = '0.0.0.0', xforwardedhost = req.headers.host;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue