Skip to content

Commit

Permalink
Added referer
Browse files Browse the repository at this point in the history
  • Loading branch information
ackava committed Jul 26, 2023
1 parent 7543c9b commit 6e1bd6d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/server/WebServer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,13 @@ class WebServer {
ws: true,
cookieDomainRewrite: "",
onProxyReq: (proxyReq, req, res) => {

let r = req.header("referer");
if (r) {
console.log(req.url);
console.log(`Referer: ${r}`);
}

if (!req.body || !Object.keys(req.body).length) {
return;
}
Expand Down

0 comments on commit 6e1bd6d

Please sign in to comment.