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:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user