mirror of
https://github.com/github/codeql.git
synced 2025-12-24 04:36:35 +01:00
JS: recognize Express headers as RequestInputAccess
This commit is contained in:
@@ -42,3 +42,9 @@ function getArrowHandler() {
|
||||
return (req, res) => f();
|
||||
}
|
||||
app.use(getArrowHandler());
|
||||
|
||||
app.post('/headers', function(req, res) {
|
||||
req.headers.baz;
|
||||
req.host;
|
||||
req.hostname;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user