fix: hls session ending and user can't watch video

This commit is contained in:
Rotimi Best
2026-06-28 13:15:37 +01:00
parent 9222c8947d
commit a70f8c5287
15 changed files with 81 additions and 21 deletions
@@ -75,7 +75,11 @@ export const publicCourseRouter = new Hono()
path: '/',
httpOnly: true,
secure: true,
sameSite: 'Lax',
// `None` (not `Lax`) so the cookie is sent on cross-site segment
// fetches issued by hls.js — Lax is withheld on cross-site
// subresource requests, which would 403 every segment when the
// public site and api/stream live on different hosts.
sameSite: 'None',
maxAge: result.maxAgeSeconds
});
+6 -1
View File
@@ -261,7 +261,12 @@ export const assetsRouter = new Hono()
path: '/',
httpOnly: true,
secure: true,
sameSite: 'Lax',
// `None` (not `Lax`) so the cookie is sent on cross-site segment
// fetches issued by hls.js — Lax is withheld on cross-site
// subresource requests, which would 403 every segment when the
// player and api/stream live on different hosts (BYOD custom
// domains, local cross-origin dev).
sameSite: 'None',
maxAge: maxAgeSeconds
});