fix: hls session ending and user can't watch video
This commit is contained in:
@@ -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
|
||||
});
|
||||
|
||||
|
||||
@@ -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
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user