Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit5cbe360

Browse files
fix(site): Fix CSP directives for monaco (#6709)
1 parent00860cf commit5cbe360

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎site/site.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,8 @@ func cspHeaders(next http.Handler) http.Handler {
326326
CSPDirectiveScriptSrc: {"'self' https://cdn.jsdelivr.net"},
327327
CSPDirectiveStyleSrc: {"'self' 'unsafe-inline' https://cdn.jsdelivr.net"},
328328
// data: is used by monaco editor on FE for Syntax Highlight
329-
CSPDirectiveFontSrc: {"'self' data:"},
329+
CSPDirectiveFontSrc: {"'self' https://cdn.jsdelivr.net data:"},
330+
CSPDirectiveWorkerSrc: {"'self' blob:"},
330331
// object-src is needed to support code-server
331332
CSPDirectiveObjectSrc: {"'self'"},
332333
// blob: for loading the pwa manifest for code-server

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp