Restrict x-umami-client-* headers to cloud mode only.
This commit is contained in:
1 parent
fbd0564133
commit
fd2e2047cd
2 files changed
+11
-7
No files matched your search
+1
-1
@@ -1,5 +1,5 @@
|
||||
export const IP_ADDRESS_HEADERS = [
|
||||
'x-umami-client-ip', // Umami custom header
|
||||
...(process.env.CLOUD_MODE ? ['x-umami-client-ip'] : []), // Umami custom header (cloud mode only)
|
||||
'true-client-ip', // CDN
|
||||
'cf-connecting-ip', // Cloudflare
|
||||
'fastly-client-ip', // Fastly
|
||||
|
||||
Reference in new issue
Block a user