Skip to content

Commit

Permalink
fix: broken session cookie domain
Browse files Browse the repository at this point in the history
  • Loading branch information
gregory-j-baker committed Dec 11, 2024
1 parent 22ca9b9 commit a85393a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion future-sir-frontend/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ SESSION_EXPIRES_SECONDS=
# This cookie stores session ID in the browser.
SESSION_COOKIE_NAME=

# The domain for which the session cookie is valid (default: localhost).
# The domain for which the session cookie is valid (default: undefined).
# Examples:
# - `localhost`: cookie is valid only for the localhost domain
# - `.example.com`: cookie is valid for all subdomains of example.com
Expand Down
2 changes: 1 addition & 1 deletion future-sir-frontend/app/.server/express/environment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ const serverEnvironmentSchema = clientEnvironmentSchema

// session config
SESSION_TYPE: z.enum(['memory', 'redis']).default('memory'),
SESSION_COOKIE_DOMAIN: z.string().default('localhost'),
SESSION_COOKIE_DOMAIN: z.string().optional(),
SESSION_COOKIE_NAME: z.string().default('__FSIR||session'),
SESSION_COOKIE_PATH: z.string().default('/'),
SESSION_COOKIE_SAMESITE: z.enum(['lax', 'strict', 'none']).default('strict'),
Expand Down

0 comments on commit a85393a

Please sign in to comment.