Skip to content

Commit

Permalink
Fix google play fetch for VersionCheck (#182)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ahmed-Alsalim authored Jan 1, 2023
1 parent b0b2fbf commit 7a9ff8c
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ class PlayStoreProvider implements IProvider {
opt.packageName = getVersionInfo().getPackageName();
}

opt.fetchOptions = {
headers: { 'sec-fetch-site': 'same-origin' },
...opt.fetchOptions
}

const storeUrl = `https://play.google.com/store/apps/details?id=${opt.packageName}&hl=en&gl=US`;

return fetch(storeUrl, opt.fetchOptions)
Expand Down

0 comments on commit 7a9ff8c

Please sign in to comment.