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

* 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

(cherry picked from commit 8143991b94)
This commit is contained in:
Grot (@grafanabot)
2021-06-03 12:11:14 +01:00
committed by GitHub
parent 7083577a4a
commit 1e533f37ed
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")