Security: Update default CSP template and fix firefox CSP issues (#34836)

* Security: Update default content_security_policy_template
- Add 'strict-dynamic' back to script-src
- Add ws(s)://$ROOT_PATH to connect-src
- Change onEvent to on-event in angular templates to fix CSP issues in firefox.
- Add blob: to style-src
This commit is contained in:
kay delaney
2021-05-28 17:01:10 +02:00
committed by GitHub
parent 244d3f61c3
commit 8143991b94
15 changed files with 26 additions and 22 deletions
+1 -1
View File
@@ -28,7 +28,7 @@ func TestLoadingSettings(t *testing.T) {
Convey("Given the default ini files", func() {
cfg := NewCfg()
err := cfg.Load(&CommandLineArgs{HomePath: "../../"})
err := cfg.Load(&CommandLineArgs{HomePath: "../../", Config: "../../conf/defaults.ini"})
So(err, ShouldBeNil)
So(cfg.AdminUser, ShouldEqual, "admin")