Jblew / firebase-functions-rate-limiter

Js/ts library that allows you to set per-time, per-user or per-anything limits for calling Firebase cloud functions
MIT License
100 stars 15 forks source link

Limiting by origin? #20

Open dfeinzimer opened 3 years ago

dfeinzimer commented 3 years ago

Is there any progress towards being able to limit by origin as opposed to everyone (Example 1) or user (Example 2)?

jasan-s commented 3 years ago

@kernelpop you can just pass in the request origin in to the qualifier and it would work, unless i misunderstood your question.

Jblew commented 3 years ago

Exactly! @jasan-s is correct :)