π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
fix(stream):handle-options-request
Aswin Asok5dab2f2aa456
diff --git a/desktop/src/main/stream.ts b/desktop/src/main/stream.tsindex 05448e6069..b41144e285 100644--- a/desktop/src/main/stream.ts+++ b/desktop/src/main/stream.ts@@ -42,9 +42,22 @@ const handleStreamRequest = async ()return new Response("", { status: 403 });- const url = request.url;+ const { host, searchParams } = new URL(request.url);+ if (+ request.method == "OPTIONS" &&+ host == "video" &&+ searchParams.get("op") == "generate-hls"+ ) {+ return new Response(null, {+ status: 204,+ headers: {+ "Access-Control-Allow-Origin": rendererOrigin,+ "Access-Control-Allow-Methods": "POST",+ "Access-Control-Allow-Headers": "X-Auth-Token",+ },+ });+ }- const { host, searchParams } = new URL(url);switch (host) {case "read":return handleRead(searchParams.get("path")!);