Show the dashboard in the Linux app by dropping Secure from its frame's sign-in cookie, and release 3.0.1

WebKit (the app's web view on Linux and macOS) drops a Secure cookie sent
over plain http://127.0.0.1, so inside the tauri://localhost frame every
request after the sign-in was a 403 and the app showed "its page did not
show in this window". That frame now gets SameSite=Lax; Windows'
tauri.localhost keeps None; Secure, and standalone keeps Strict.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
jparkerwebandClaude Opus 5.5 committed 2026-11-06 09:50:15 -08:00
1 parent cedc3300ed
commit 272e514372
13 files changed
+47 -18

No files matched your search

+9
View File
@@ -86,6 +86,15 @@ test("the session cookie is Strict standalone and None; Secure under embed", asy
assert.match(embedded, /SameSite=None; Secure/);
});
// WebKit (the app on Linux and macOS) drops a Secure cookie sent over plain
// http, so the page in the app's frame got a 403 after the sign-in.
test("the session cookie is Lax and never Secure under the tauri://localhost embed", async () => {
const embedded = await cookieWith("tauri://localhost");
assert.match(embedded, /SameSite=Lax/);
assert.doesNotMatch(embedded, /Secure/);
assert.match(embedded, /HttpOnly/);
});
test("anything but exactly one allowed origin keeps frame-ancestors 'none'", async () => {
const rejected = [
"https://example.com",