mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-19 14:53:50 +02:00
Add User-Agent, fixes 403 spam
This commit is contained in:
@@ -344,6 +344,9 @@ speechSynthesis.getVoices();
|
|||||||
var init = {
|
var init = {
|
||||||
url: `https://api.vrchat.cloud/api/1/${endpoint}`,
|
url: `https://api.vrchat.cloud/api/1/${endpoint}`,
|
||||||
method: 'GET',
|
method: 'GET',
|
||||||
|
headers: {
|
||||||
|
'User-Agent': `VRCX ${$app.appVersion}`
|
||||||
|
},
|
||||||
...options
|
...options
|
||||||
};
|
};
|
||||||
var { params } = init;
|
var { params } = init;
|
||||||
|
|||||||
Reference in New Issue
Block a user