diff --git a/setup/start/nginx/appconfig.ejs b/setup/start/nginx/appconfig.ejs index d34c894bf..678d1b77b 100644 --- a/setup/start/nginx/appconfig.ejs +++ b/setup/start/nginx/appconfig.ejs @@ -160,6 +160,7 @@ server { # } location / { + add_header Content-Security-Policy "default-src wss: https: *.cloudron.io <%= adminOrigin %>; script-src https: 'self' 'unsafe-inline' 'unsafe-eval'; img-src * data:; style-src https: 'unsafe-inline'"; root <%= sourceDir %>/dashboard/dist; index index.html index.htm; }