Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

fix: Secure as true

Richie McIlroy6cd5021d7a76
diff --git a/apps/web/middleware.ts b/apps/web/middleware.ts
index 1ed26a5cc..579255fbb 100644
--- a/apps/web/middleware.ts
+++ b/apps/web/middleware.ts
@@ -20,7 +20,7 @@ export function middleware(request: NextRequest) {
value: token,
path: "/",
sameSite: "none",
- secure: false,
+ secure: true,
httpOnly: true,
});
return response;
diff --git a/packages/database/auth/auth-options.ts b/packages/database/auth/auth-options.ts
index f019991f8..603360dcd 100644
--- a/packages/database/auth/auth-options.ts
+++ b/packages/database/auth/auth-options.ts
@@ -41,7 +41,7 @@ export const authOptions: NextAuthOptions = {
httpOnly: true,
sameSite: "none",
path: "/",
- secure: false,
+ secure: true,
},
},
},