Skip to content

Commit 17e8e49

Browse files
authored
fix(analytics,web): use no-cors mode vs no-cors header for web analytics (#8238)
1 parent c027ef2 commit 17e8e49

File tree

1 file changed

+1
-1
lines changed
  • packages/analytics/lib/web

1 file changed

+1
-1
lines changed

packages/analytics/lib/web/api.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,7 @@ For example, to use React Native Async Storage:
304304
}
305305
const response = await fetch(url, {
306306
method: 'POST',
307+
mode: 'no-cors',
307308
headers: {
308309
accept: '*/*',
309310
'accept-encoding': 'gzip, deflate, br',
@@ -314,7 +315,6 @@ For example, to use React Native Async Storage:
314315
origin: 'firebase',
315316
pragma: 'no-cache',
316317
'sec-fetch-dest': 'empty',
317-
'sec-fetch-mode': 'no-cors',
318318
'sec-fetch-site': 'cross-site',
319319
'user-agent': 'react-native-firebase',
320320
},

0 commit comments

Comments
 (0)