File tree 1 file changed +6
-3
lines changed
1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -266,9 +266,12 @@ func cspHeaders(next http.Handler) http.Handler {
266
266
CSPDirectiveDefaultSrc : {"'self'" },
267
267
CSPDirectiveConnectSrc : {"'self'" },
268
268
CSPDirectiveChildSrc : {"'self'" },
269
- CSPDirectiveScriptSrc : {"'self'" },
270
- CSPDirectiveFontSrc : {"'self'" },
271
- CSPDirectiveStyleSrc : {"'self' 'unsafe-inline'" },
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
+ // data: is used by monaco editor on FE for Syntax Highlight
273
+ CSPDirectiveFontSrc : {"'self' data:" },
274
+ CSPDirectiveStyleSrc : {"'self' 'unsafe-inline'" },
272
275
// object-src is needed to support code-server
273
276
CSPDirectiveObjectSrc : {"'self'" },
274
277
// blob: for loading the pwa manifest for code-server
You can’t perform that action at this time.
0 commit comments