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

This commit is contained in:
Hakan Shehu
2025-06-12 23:59:29 +02:00
committed by GitHub
parent 10ac2d3019
commit e0db60fdef
2 changed files with 3 additions and 3 deletions

View File

@@ -13,7 +13,7 @@ export const serverConfigSchema = z.object({
mode: serverModeSchema.default('standalone'), mode: serverModeSchema.default('standalone'),
pathPrefix: z.string().optional(), pathPrefix: z.string().optional(),
cors: z.object({ cors: z.object({
origin: z.string().default('https://app.colanode.com'), origin: z.string().default('http://localhost:4000'),
maxAge: z.coerce.number().default(7200), maxAge: z.coerce.number().default(7200),
}), }),
}); });

View File

@@ -96,9 +96,9 @@ services:
# the URL 'https://localhost:3000/config' will be: 'https://localhost:3000/colanode/config' # the URL 'https://localhost:3000/config' will be: 'https://localhost:3000/colanode/config'
# SERVER_PATH_PREFIX: 'colanode' # 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. # 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' # SERVER_CORS_MAX_AGE: '7200'
# ─────────────────────────────────────────────────────────────── # ───────────────────────────────────────────────────────────────