mirror of
https://github.com/umami-software/umami.git
synced 2026-02-18 11:35:37 +01:00
feat: add headers for CF-Access-Client-Id and CF-Access-Client-Secret in API queries across multiple hooks
This commit is contained in:
parent
dc78b5e99d
commit
9d6f794d4d
11 changed files with 11 additions and 11 deletions
|
|
@ -11,7 +11,7 @@ export function useSessionDataProperties(
|
|||
|
||||
return useQuery<any>({
|
||||
queryKey: ['websites:session-data:properties', { websiteId, ...params }],
|
||||
queryFn: () => get(`/websites/${websiteId}/session-data/properties`, { ...params }),
|
||||
queryFn: () => get(`/websites/${websiteId}/session-data/properties`, { ...params }, { headers: { 'CF-Access-Client-Id': '571942449727ad914a422562e7931a4a.access', 'CF-Access-Client-Secret': '571942449727ad914a422562e7931a4a.secret' } }),
|
||||
enabled: !!websiteId,
|
||||
...options,
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue