Skip to content

Commit 6996ff0

Browse files
authored
fix: Fixed CSP policy for commit page (#733)
1 parent e009428 commit 6996ff0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/messages.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ async function showCommitInput(message?: string, filePaths?: string[]) {
7878
Use a content security policy to only allow loading images from https or from our extension directory,
7979
and only allow scripts that have a specific nonce.
8080
-->
81-
<meta http-equiv="Content-Security-Policy" content="default-src 'none'; img-src ${panel.webview.cspSource} https:; script-src ${panel.webview.cspSource}; style-src ${panel.webview.cspSource};">
81+
<meta http-equiv="Content-Security-Policy" content="default-src 'none'; img-src ${panel.webview.cspSource} https:; script-src ${panel.webview.cspSource} 'unsafe-inline'; style-src ${panel.webview.cspSource};">
8282
8383
<title>Commit Message</title>
8484
<link rel="stylesheet" href="${styleUri}">

0 commit comments

Comments
 (0)