Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

fix: update fetch requests to use `mode: cors`

mildtomatod6b7b6ff9181
diff --git a/web/static/scripts/telemetry.js b/web/static/scripts/telemetry.js
index 852a55f680e..3e477644a89 100644
--- a/web/static/scripts/telemetry.js
+++ b/web/static/scripts/telemetry.js
@@ -1,6 +1,6 @@
function telemetry() {
return fetch('https://app.supabase.io/api/telemetry/page', {
- mode: 'no-cors', // 'cors' by default,
+ mode: 'cors', // 'cors' by default,
method: 'POST',
headers: {
'Content-Type': 'application/json',
diff --git a/www/lib/fetchWrapper.ts b/www/lib/fetchWrapper.ts
index 763c9d4c50b..8fd0000cf1e 100644
--- a/www/lib/fetchWrapper.ts
+++ b/www/lib/fetchWrapper.ts
@@ -5,7 +5,7 @@ interface DataProps {
export const post = (url: string, data: DataProps, options = {}) => {
return fetch(url, {
- mode: 'no-cors', // 'cors' by default,
+ mode: 'cors', // 'cors' by default,
method: 'POST',
headers: {
'Content-Type': 'application/json',