mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-05-05 22:36:05 +02:00
Fix 403 spam
This commit is contained in:
+4
-3
@@ -344,9 +344,6 @@ 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;
|
||||||
@@ -375,6 +372,10 @@ speechSynthesis.getVoices();
|
|||||||
? JSON.stringify(params)
|
? JSON.stringify(params)
|
||||||
: '{}';
|
: '{}';
|
||||||
}
|
}
|
||||||
|
init.headers = {
|
||||||
|
'User-Agent': $app.appVersion,
|
||||||
|
...init.headers
|
||||||
|
};
|
||||||
var req = webApiService.execute(init).catch((err) => {
|
var req = webApiService.execute(init).catch((err) => {
|
||||||
this.$throw(0, err);
|
this.$throw(0, err);
|
||||||
}).then((response) => {
|
}).then((response) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user