mirror of
https://github.com/colanode/colanode.git
synced 2025-12-16 11:47:47 +01:00
Change default cors origin to localhost:4000 (#59)
This commit is contained in:
@@ -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),
|
||||
}),
|
||||
});
|
||||
|
||||
@@ -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'
|
||||
|
||||
# ───────────────────────────────────────────────────────────────
|
||||
|
||||
Reference in New Issue
Block a user