xsts xbox doesnt need cors proxy

This commit is contained in:
creeper123123321 2021-01-20 19:13:26 -03:00
parent 728397f3d1
commit f1f19e82c0

View File

@ -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"}});