Skip to content

Commit

Permalink
Fix 404 error when spoofing User-Agent (#34)
Browse files Browse the repository at this point in the history
  • Loading branch information
redphx committed Aug 2, 2023
1 parent 8d8ccfd commit 432feef
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions better-xcloud.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -486,6 +486,7 @@ class UserAgent {
get: () => this._state,
set: (state) => {
state.appContext.requestInfo.userAgent = userAgent;
state.appContext.requestInfo.origin = 'https://www.xbox.com';
this._state = state;
}
});
Expand Down

0 comments on commit 432feef

Please sign in to comment.