Restrict x-umami-client-* headers to cloud mode only.

This commit is contained in:
Mike Cao committed 2026-01-23 20:52:39 -08:00
1 parent fbd0564133
commit fd2e2047cd
2 files changed
+11 -7

No files matched your search

+1 -1
View File
@@ -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