[tauri] TauriPlatforms: The shell around the built game, the Android privacy patch, the shell build of the game, and the device check

This commit is contained in:
2026-11-17 18:45:37 +01:00
parent 3f95a1b37d
commit a93ef09956
33 changed files with 5902 additions and 86 deletions
+23
View File
@@ -0,0 +1,23 @@
/**
* The content-security policy, one string for all four versions (CLAUDE.md §2, *Four versions*).
* The PWA carries it in a <meta> tag, because GitHub Pages cannot send headers (CLAUDE.md §8).
* The Tauri shell delivers it from `apps/rosea-tauri/src-tauri/tauri.conf.json`
* (`app.security.csp`), and the shell's test holds that string equal to this one
* (tauri-platforms.md D4).
*
* `'self'` everywhere and nothing else: no CDN, no font host, no analytics (CLAUDE.md §4).
* `frame-ancestors` is ignored in a meta tag and is omitted rather than pretended.
*/
export const CSP = [
"default-src 'self'",
"script-src 'self'",
"style-src 'self'",
"img-src 'self' data:",
"font-src 'self'",
"connect-src 'self'",
"manifest-src 'self'",
"worker-src 'self'",
"object-src 'none'",
"base-uri 'self'",
"form-action 'none'"
].join('; ');