RisingStack / protect

Proactively protect your Node.js web services
MIT License
401 stars 23 forks source link

rateLimiter doesn't work with multiple instances #14

Open benjamingr opened 6 years ago

benjamingr commented 6 years ago

I have a scenario where I want to limit a user by two things (for example, I want to limit by token and IP address) but rateLimiter always sets headers on the response and these interfere with each other.

There should be an option to turn writing these headers off - I can open a PR if you're interested.