mirror of
https://github.com/umami-software/umami.git
synced 2026-02-04 04:37:11 +01:00
fix(geo): parse netlify ip header by default: x-nf-client-connection-ip
This header is not clearly documented, but it is mentioned in semi-official sources, and I have tested it to ensure it's working properly. Without this, Umami is unable to detect geolocation by default if deployed on Netlify. * https://answers.netlify.com/t/is-the-client-ip-header-going-to-be-supported-long-term/11203/2 * https://httptoolkit.com/blog/what-is-x-forwarded-for/#and-others
This commit is contained in:
parent
503a1f740c
commit
bfcc822b40
1 changed files with 1 additions and 0 deletions
|
|
@ -344,6 +344,7 @@ export const IP_ADDRESS_HEADERS = [
|
|||
'x-cluster-client-ip',
|
||||
'x-forwarded',
|
||||
'x-forwarded-for',
|
||||
'x-nf-client-connection-ip',
|
||||
'x-real-ip',
|
||||
];
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue