fix(origin): Testing origin screening

This commit is contained in:
Chris Troutner
2020-06-18 14:22:48 -07:00
parent d730fcc495
commit 3235582c3a
+4
View File
@@ -122,6 +122,10 @@ class RateLimits {
// Update the key so that rate limits track both the user and the resource.
key = `${key}-${resource}`
const host = req.get('host')
const origin = req.get('origin')
console.log(`host: ${host}, origin: ${origin}`)
await _this.rateLimiter.consume(key, pointsToConsume)
} catch (err) {
// console.log('err: ', err)