We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3c9dab3 commit 92c5e97Copy full SHA for 92c5e97
site/site.go
@@ -269,9 +269,9 @@ func cspHeaders(next http.Handler) http.Handler {
269
// https://cdn.jsdelivr.net is used by monaco editor on FE for Syntax Highlight
270
// https://github.com/suren-atoyan/monaco-react/issues/168
271
CSPDirectiveScriptSrc: {"'self' https://cdn.jsdelivr.net"},
272
+ CSPDirectiveStyleSrc: {"'self' 'unsafe-inline' https://cdn.jsdelivr.net"},
273
// data: is used by monaco editor on FE for Syntax Highlight
- CSPDirectiveFontSrc: {"'self' data:"},
274
- CSPDirectiveStyleSrc: {"'self' 'unsafe-inline'"},
+ CSPDirectiveFontSrc: {"'self' data:"},
275
// object-src is needed to support code-server
276
CSPDirectiveObjectSrc: {"'self'"},
277
// blob: for loading the pwa manifest for code-server
0 commit comments