Can’t have strict Content Security Policy with Electron Vite
I’m building an app using Electron and Vite but have run into an issue when specifying my Content Security Policy. I want to have a CSP as strict as possible (not specify unsafe-inline
) but Vite clashes with this be adding inline styles. The issue is the exact same as this github issue. A solution was made in this PR by supporting a nonce during the vite process.