Skip to content

Open-source and local-first Slack and Notion alternative that puts you in control of your data

Change default cors origin to localhost:4000 (#59)

Hakan Shehue0db60fdefea
diff --git a/apps/server/src/lib/config/server.ts b/apps/server/src/lib/config/server.ts
index 73a829f6..3f54f9f5 100644
--- a/apps/server/src/lib/config/server.ts
+++ b/apps/server/src/lib/config/server.ts
@@ -13,7 +13,7 @@ export const serverConfigSchema = z.object({
mode: serverModeSchema.default('standalone'),
pathPrefix: z.string().optional(),
cors: z.object({
- origin: z.string().default('https://app.colanode.com'),
+ origin: z.string().default('http://localhost:4000'),
maxAge: z.coerce.number().default(7200),
}),
});
diff --git a/docker-compose.yaml b/docker-compose.yaml
index 6d8f026c..9d7528cb 100644
--- a/docker-compose.yaml
+++ b/docker-compose.yaml
@@ -96,9 +96,9 @@ services:
# the URL 'https://localhost:3000/config' will be: 'https://localhost:3000/colanode/config'
# SERVER_PATH_PREFIX: 'colanode'
- # Optional CORS Configuration. By default the server is accessible from 'https://app.colanode.com'.
+ # Optional CORS Configuration. By default the server is accessible from 'http://localhost:4000'.
# You can change this to allow custom origins (use comma to separate multiple origins) or '*' to allow all origins.
- # SERVER_CORS_ORIGIN: 'https://app.colanode.com'
+ # SERVER_CORS_ORIGIN: 'http://localhost:4000'
# SERVER_CORS_MAX_AGE: '7200'
# ───────────────────────────────────────────────────────────────