Skip to content

Commit fcd638b

Browse files
authored
fix: duplicate window creation and CSP issues (#540)
1 parent c6921d6 commit fcd638b

File tree

1 file changed

+2
-14
lines changed

1 file changed

+2
-14
lines changed

src-tauri/tauri.conf.json

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -59,19 +59,7 @@
5959
},
6060
"app": {
6161
"security": {
62-
"csp": "script-src blob: data: filesystem: ws: wss: http: https: tauri: 'unsafe-eval' 'unsafe-inline' 'self' img-src: 'self'; connect-src ipc: http://ipc.localhost"
63-
},
64-
"windows": [
65-
{
66-
"title": "Cinny",
67-
"width": 1280,
68-
"height": 905,
69-
"center": true,
70-
"resizable": true,
71-
"fullscreen": false,
72-
"dragDropEnabled": false,
73-
"useHttpsScheme": true
74-
}
75-
]
62+
"csp": "default-src 'self' blob: data: filesystem: ws: wss: http: https: tauri:; script-src 'self' 'unsafe-eval' 'unsafe-inline' blob: data: filesystem: ws: wss: http: https: tauri:; img-src 'self' data: blob: filesystem: http: https:; connect-src 'self' ipc: ws: wss: http: https: http://ipc.localhost"
63+
}
7664
}
7765
}

0 commit comments

Comments
 (0)