We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I believe the SESSION_SECRET should not come from the public environment variables as stated in the example available at https://start.solidjs.com/advanced/session:
SESSION_SECRET
import { createCookieSessionStorage } from "solid-start"; const storage = createCookieSessionStorage({ cookie: { name: "session", secure: import.meta.env.PROD, secrets: [import.meta.env.VITE_SESSION_SECRET], // <-- leak? sameSite: "lax", path: "/", maxAge: 60 * 60 * 24 * 30, // 30 days httpOnly: true } });
This will leak the session secret in the client bundle according to Vite security notes.
I discussed this issue here OrJDev/create-jd-app#24 with an alternative.
The text was updated successfully, but these errors were encountered:
#578
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
I believe the
SESSION_SECRET
should not come from the public environment variables as stated in the example available at https://start.solidjs.com/advanced/session:This will leak the session secret in the client bundle according to Vite security notes.
I discussed this issue here OrJDev/create-jd-app#24 with an alternative.
The text was updated successfully, but these errors were encountered: