mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-18 22:33:50 +02:00
Fix 403 spam
This commit is contained in:
@@ -344,9 +344,6 @@ speechSynthesis.getVoices();
|
||||
var init = {
|
||||
url: `https://api.vrchat.cloud/api/1/${endpoint}`,
|
||||
method: 'GET',
|
||||
headers: {
|
||||
'User-Agent': `VRCX ${$app.appVersion}`
|
||||
},
|
||||
...options
|
||||
};
|
||||
var { params } = init;
|
||||
@@ -375,6 +372,10 @@ speechSynthesis.getVoices();
|
||||
? JSON.stringify(params)
|
||||
: '{}';
|
||||
}
|
||||
init.headers = {
|
||||
'User-Agent': $app.appVersion,
|
||||
...init.headers
|
||||
};
|
||||
var req = webApiService.execute(init).catch((err) => {
|
||||
this.$throw(0, err);
|
||||
}).then((response) => {
|
||||
|
||||
Reference in New Issue
Block a user