Skip to content

Commit dcf0ad7

Browse files
Cameron AmerCameron Amer
authored andcommitted
v1.8.2 Release - Streaming Hotfix: Cross-Platform Video Playback Correction
1 parent 8e05920 commit dcf0ad7

7 files changed

Lines changed: 36 additions & 11 deletions

File tree

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# Changelog
22

3+
## [1.8.2] - 2026-06-03
4+
5+
### Streaming Hotfix: Cross-Platform Video Playback Correction
6+
7+
- **CORS Configuration Update**
8+
- Updated CORS configuration on local streaming and API servers to use dynamic origin matching.
9+
- Resolved video playback failures (`TypeError: Failed to fetch` / `TypeError: Load failed`) on Windows, macOS, and Linux clients by explicitly supporting platform-specific custom schemes and WebKit's `null` origin.
10+
11+
---
12+
313
## [1.8.1] - 2026-06-03
414

515
### Features, Security & Architecture (MimoPro Cleanups Part 2)

app/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "app",
33
"private": true,
4-
"version": "1.8.1",
4+
"version": "1.8.2",
55
"type": "module",
66
"scripts": {
77
"dev": "vite",

app/src-tauri/Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/src-tauri/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "app"
3-
version = "1.8.1"
3+
version = "1.8.2"
44
description = "Turn your Telegram account into an unlimited, secure cloud storage drive. an Open-source desktop app built with Tauri, Rust, and React."
55
authors = ["Cameron Amer"]
66
edition = "2021"

app/src-tauri/src/lib.rs

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -128,10 +128,17 @@ pub fn restart_api_server(app: &tauri::AppHandle) {
128128

129129
match actix_web::HttpServer::new(move || {
130130
let cors = actix_cors::Cors::default()
131-
.allowed_origin("http://127.0.0.1")
132-
.allowed_origin("http://localhost")
133-
.allowed_origin("tauri://localhost")
134-
.allowed_origin("https://tauri.localhost")
131+
.allowed_origin_fn(|origin, _req_head| {
132+
let origin_bytes = origin.as_bytes();
133+
origin_bytes.starts_with(b"tauri://")
134+
|| origin_bytes.starts_with(b"http://tauri.localhost")
135+
|| origin_bytes.starts_with(b"https://tauri.localhost")
136+
|| origin_bytes.starts_with(b"http://localhost")
137+
|| origin_bytes.starts_with(b"http://127.0.0.1")
138+
|| origin_bytes.starts_with(b"https://asset.localhost")
139+
|| origin_bytes.starts_with(b"http://asset.localhost")
140+
|| origin_bytes == b"null"
141+
})
135142
.allow_any_method()
136143
.allow_any_header();
137144

app/src-tauri/src/server.rs

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -286,9 +286,17 @@ pub async fn start_server(
286286

287287
let server = HttpServer::new(move || {
288288
let cors = Cors::default()
289-
.allowed_origin("tauri://localhost")
290-
.allowed_origin("http://localhost:1420")
291-
.allowed_origin("https://tauri.localhost")
289+
.allowed_origin_fn(|origin, _req_head| {
290+
let origin_bytes = origin.as_bytes();
291+
origin_bytes.starts_with(b"tauri://")
292+
|| origin_bytes.starts_with(b"http://tauri.localhost")
293+
|| origin_bytes.starts_with(b"https://tauri.localhost")
294+
|| origin_bytes.starts_with(b"http://localhost")
295+
|| origin_bytes.starts_with(b"http://127.0.0.1")
296+
|| origin_bytes.starts_with(b"https://asset.localhost")
297+
|| origin_bytes.starts_with(b"http://asset.localhost")
298+
|| origin_bytes == b"null"
299+
})
292300
.allow_any_method()
293301
.allow_any_header();
294302

app/src-tauri/tauri.conf.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
}
1313
},
1414
"productName": "Telegram Drive",
15-
"version": "1.8.1",
15+
"version": "1.8.2",
1616
"identifier": "com.cameronamer.telegramdrive",
1717
"build": {
1818
"beforeDevCommand": "npm run dev",

0 commit comments

Comments
 (0)