mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
fix: Add https: to image CSP to allow external images (#2870)
This broke external application icons.
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user