mirror of
https://github.com/umami-software/umami.git
synced 2026-02-04 04:37:11 +01:00
feat: add EdgeOne headers for geolocation detection
This commit is contained in:
parent
860e6390f1
commit
ad264f941d
1 changed files with 6 additions and 0 deletions
|
|
@ -28,6 +28,12 @@ const PROVIDER_HEADERS = [
|
|||
regionHeader: 'cloudfront-viewer-country-region',
|
||||
cityHeader: 'cloudfront-viewer-city',
|
||||
},
|
||||
// EdgeOne headers (requires custom request headers in Rule Priorities, see: https://edgeone.ai/document/46151)
|
||||
{
|
||||
countryHeader: 'eo-ipcountry',
|
||||
regionHeader: 'eo-region-code',
|
||||
cityHeader: 'eo-ipcity',
|
||||
},
|
||||
];
|
||||
|
||||
export function getDevice(userAgent: string, screen: string = '') {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue