mirror of
https://github.com/ViaVersion/VIAaaS.git
synced 2025-01-23 21:52:35 +01:00
xsts xbox doesnt need cors proxy
This commit is contained in:
parent
728397f3d1
commit
f1f19e82c0
@ -44,7 +44,7 @@ function refreshTokenMs(username) {
|
||||
if (!isSuccess(xboxResponse.status)) throw "xbox response not success";
|
||||
return xboxResponse.json();
|
||||
}).then(json => {
|
||||
return fetch(getCorsProxy() + "https://xsts.auth.xboxlive.com/xsts/authorize", {method: "post",
|
||||
return fetch("https://xsts.auth.xboxlive.com/xsts/authorize", {method: "post",
|
||||
body: JSON.stringify({Properties: {SandboxId: "RETAIL", UserTokens: [json.Token]},
|
||||
RelyingParty: "rp://api.minecraftservices.com/", TokenType: "JWT"}),
|
||||
headers: {"content-type": "application/json"}});
|
||||
|
Loading…
Reference in New Issue
Block a user