OpenPanel is an open-source web and product analytics platform, an open-source alternative to Mixpanel with optional self-hosting.
allow all cors...
Carl-Gerhard Lindesvärd288fd6f6d0fc
diff --git a/apps/api/src/index.ts b/apps/api/src/index.tsindex 4493255b7..1f98d79ee 100644--- a/apps/api/src/index.ts+++ b/apps/api/src/index.ts@@ -33,17 +33,8 @@ const startServer = async () => {maxParamLength: 5000,});- const origin = [];- if (process.env.NODE_ENV === 'production') {- if (process.env.NEXT_PUBLIC_DASHBOARD_URL) {- origin.push(process.env.NEXT_PUBLIC_DASHBOARD_URL);- }- } else {- origin.push('http://localhost:3000');- }-fastify.register(cors, {- origin,+ origin: '*',credentials: true,});