Skip to content

Commit 632f04f

Browse files
committed
feat: append widget version to user agent
1 parent f28687e commit 632f04f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ui/utils/fetch.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export function createFetchWrapper(baseUrl?: string) {
4040
'Content-Type': 'application/json',
4141
'Accept': 'application/json',
4242
'X-Requested-With': 'XMLHttpRequest',
43-
'X-PlusAuth-Widget-Version': `${version}`
43+
'User-Agent': `${navigator.userAgent} PlusAuthWidget/${version}`
4444
}, fetchOptions.headers || {})
4545

4646
if (fetchOptions.body) {

0 commit comments

Comments
 (0)