Cosmos-Server/header-tester.js

11 lines
229 B
JavaScript
Raw Normal View History

2023-06-23 16:02:24 +00:00
const express = require('express');
const app = express();
const port = 8080;
app.get('*', (req, res) => {
res.send(req.headers);
});
app.listen(port, () => {
console.log(`Server listening at http://localhost:${port}`);
});