Skip to content

Commit

Permalink
fix(analytics,web): use no-cors mode vs no-cors header for web analyt…
Browse files Browse the repository at this point in the history
…ics (#8238)
  • Loading branch information
ristewar authored Jan 20, 2025
1 parent c027ef2 commit 17e8e49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/analytics/lib/web/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,7 @@ For example, to use React Native Async Storage:
}
const response = await fetch(url, {
method: 'POST',
mode: 'no-cors',
headers: {
accept: '*/*',
'accept-encoding': 'gzip, deflate, br',
Expand All @@ -314,7 +315,6 @@ For example, to use React Native Async Storage:
origin: 'firebase',
pragma: 'no-cache',
'sec-fetch-dest': 'empty',
'sec-fetch-mode': 'no-cors',
'sec-fetch-site': 'cross-site',
'user-agent': 'react-native-firebase',
},
Expand Down

0 comments on commit 17e8e49

Please sign in to comment.