aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/index.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/index.ts b/src/index.ts
index 298dee3..b249720 100644
--- a/src/index.ts
+++ b/src/index.ts
@@ -20,7 +20,7 @@ const limiter = rateLimit({
max: 200,
skip: (req: express.Request) => {
console.log(req.headers)
- return req.headers.key === process.env.key
+ return req.headers['x-key'] === process.env.key
},
keyGenerator: (req: express.Request) => {
return (req.headers['cf-connecting-ip'] ?? req.ip).toString()