fix(origin): Tracking origin of requests in logs

This commit is contained in:
Chris Troutner
2020-08-08 08:22:23 -07:00
parent b7f1eba6bd
commit 584037ebdd
+1
View File
@@ -119,6 +119,7 @@ class RateLimits {
// If the request originates from one of the approved wallet apps, then
// apply paid-access rate limits.
const origin = req.get('origin')
wlogger.info(`origin: ${origin}`)
if (
origin &&
(origin.toString().indexOf('wallet.fullstack.cash') > -1 ||