Skip to content

Commit 7b2f117

Browse files
Oliver Baerclaude
andcommitted
fix: CSP — add Tauri IPC protocol to connect-src
The strict CSP from the security audit was blocking Tauri's invoke() IPC mechanism. Added ipc: and ipc.localhost origins to connect-src, and 'unsafe-eval' to script-src for Next.js dev mode compatibility. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent c54881d commit 7b2f117

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src-tauri/tauri.conf.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
}
3030
],
3131
"security": {
32-
"csp": "default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'; img-src 'self' https: data:; connect-src 'self' https://api.openai.com https://api.anthropic.com https://api.deepgram.com wss://api.deepgram.com https://api.assemblyai.com https://huggingface.co; font-src 'self'"
32+
"csp": "default-src 'self'; script-src 'self' 'unsafe-eval'; style-src 'self' 'unsafe-inline'; img-src 'self' https: data:; connect-src 'self' ipc: http://ipc.localhost https://ipc.localhost https://api.openai.com https://api.anthropic.com https://api.deepgram.com wss://api.deepgram.com https://api.assemblyai.com https://huggingface.co; font-src 'self'"
3333
},
3434
"macOSPrivateApi": true
3535
},

0 commit comments

Comments
 (0)