diff --git a/packages/react-native-version-check/src/providers/playStore.js b/packages/react-native-version-check/src/providers/playStore.js index 8c75e542..47e6caed 100644 --- a/packages/react-native-version-check/src/providers/playStore.js +++ b/packages/react-native-version-check/src/providers/playStore.js @@ -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)