adjst csp to work in production

This commit is contained in:
Nikita Galaiko 2023-02-27 12:43:57 +01:00
parent ba5bb45f58
commit ae6e9653aa
No known key found for this signature in database
GPG Key ID: EBAB54E845BA519D

View File

@ -50,7 +50,13 @@
"targets": ["dmg", "updater"]
},
"security": {
"csp": "default-src 'self'; img-src 'self' asset: https://asset.localhost"
"csp": {
"default-src": "'self'",
"img-src": "'self' asset: https://asset.localhost",
"connect-src": "'self' https://eu.posthog.com",
"script-src": "'self' https://eu.posthog.com",
"style-src": "'self' 'unsafe-inline'"
}
},
"systemTray": {
"iconPath": "icons/tray.png",