fix: Add https: to image CSP to allow external images (#2870)

This broke external application icons.
This commit is contained in:
Kyle Carberry
2022-07-08 21:35:59 -05:00
committed by GitHub
parent 411caa20df
commit c801da45f3
+1 -1
View File
@@ -280,7 +280,7 @@ func cspHeaders(next http.Handler) http.Handler {
// https: allows loading images from external sources. This is not ideal
// but is required for the templates page that renders readmes.
// We should find a better solution in the future.
CSPDirectiveImgSrc: {"'self' data:"},
CSPDirectiveImgSrc: {"'self' https: data:"},
CSPDirectiveFormAction: {"'self'"},
CSPDirectiveMediaSrc: {"'self'"},
// Report all violations back to the server to log