📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!
TypeScript chartsclickhousedockergdprgoogle-analyticsmetricsmonitoringmysqlnestjsprivacyredisself-hostedselfhostedstatisticstailwindcssweb-analyticswebanalyticswebsite
fixed Access-Control-Allow-Headers warning
Blue Mouse84cba09664e6
diff --git a/apps/production/src/main.ts b/apps/production/src/main.tsindex c4af558dc..7d9659c25 100644--- a/apps/production/src/main.ts+++ b/apps/production/src/main.ts@@ -47,7 +47,7 @@ async function bootstrap() {res.header('X-XSS-Protection', '1; mode=block')res.header('Access-Control-Allow-Origin', process.env.API_ORIGINS || '*')res.header('Access-Control-Allow-Methods', 'GET,POST,PUT,DELETE,PATCH')- res.header('Access-Control-Allow-Headers', '*')+ res.header('Access-Control-Allow-Headers', 'Authorization, *')if (req.method === 'OPTIONS') {// TODO: INVESTIGATEdiff --git a/apps/selfhosted/src/main.ts b/apps/selfhosted/src/main.tsindex 60c48ebcb..caf9e15e4 100644--- a/apps/selfhosted/src/main.ts+++ b/apps/selfhosted/src/main.ts@@ -40,7 +40,7 @@ async function bootstrap() {res.header('X-XSS-Protection', '1; mode=block')res.header('Access-Control-Allow-Origin', process.env.API_ORIGINS || '*')res.header('Access-Control-Allow-Methods', 'GET,POST,PUT,DELETE,PATCH')- res.header('Access-Control-Allow-Headers', '*')+ res.header('Access-Control-Allow-Headers', 'Authorization, *')if (req.method === 'OPTIONS') {// TODO: INVESTIGATE