1b2f803c3e
Die CSP erlaubte 'unsafe-eval' und Wildcard-Quellen (connect-src/img-src/ font-src/style-src *), obwohl setup.html -- die einzige lokale Seite der App -- kein eval() nutzt, keine externen Schriften/Bilder laedt und ausschliesslich ueber die Tauri-IPC-Bruecke (window.__TAURI__.core.invoke) mit dem Rust-Teil spricht. Diese CSP gilt nur fuer vom App-eigenen Protokoll ausgelieferte Seiten; nach save_server_url() navigiert das Hauptfenster auf die Server-Adresse, und diese Navigation wird von der CSP der Zielseite selbst bestimmt, nicht mehr von dieser Konfiguration. Verengt auf default-src 'self'; script-src 'self' 'unsafe-inline'; style-src 'self' 'unsafe-inline'; img-src 'self' data:; connect-src 'self'. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
42 lines
966 B
JSON
42 lines
966 B
JSON
{
|
|
"$schema": "https://raw.githubusercontent.com/tauri-apps/tauri/dev/crates/tauri-config-schema/schema.json",
|
|
"productName": "Tessera",
|
|
"version": "1.1.0",
|
|
"identifier": "de.ctl.tessera.desktop",
|
|
"build": {
|
|
"frontendDist": "../src",
|
|
"devUrl": "http://localhost:1420"
|
|
},
|
|
"app": {
|
|
"withGlobalTauri": true,
|
|
"windows": [
|
|
{
|
|
"label": "main",
|
|
"title": "Tessera",
|
|
"width": 1280,
|
|
"height": 800,
|
|
"center": true,
|
|
"decorations": true,
|
|
"resizable": true
|
|
}
|
|
],
|
|
"security": {
|
|
"csp": "default-src 'self'; script-src 'self' 'unsafe-inline'; style-src 'self' 'unsafe-inline'; img-src 'self' data:; connect-src 'self'"
|
|
}
|
|
},
|
|
"bundle": {
|
|
"active": true,
|
|
"targets": [
|
|
"appimage",
|
|
"nsis"
|
|
],
|
|
"icon": [
|
|
"icons/32x32.png",
|
|
"icons/128x128.png",
|
|
"icons/128x128@2x.png",
|
|
"icons/icon.png",
|
|
"icons/icon.ico"
|
|
]
|
|
}
|
|
}
|