mirror of
https://github.com/fullstack-cash/bch-api.git
synced 2026-09-21 16:52:04 -07:00
fix(origin): Tracking origin of requests in logs
This commit is contained in:
@@ -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 ||
|
||||
|
||||
Reference in New Issue
Block a user