Skip to content

Commit 187d95e

Browse files
committed
Revert this
1 parent d8721dc commit 187d95e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/core/webview/ClineProvider.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -622,7 +622,7 @@ export class ClineProvider
622622
"default-src 'none'",
623623
`font-src ${webview.cspSource}`,
624624
`style-src ${webview.cspSource} 'unsafe-inline' https://* http://${localServerUrl} http://0.0.0.0:${localPort}`,
625-
`img-src ${webview.cspSource} https://storage.googleapis.com https://img.clerk.com data:`,
625+
`img-src ${webview.cspSource} data:`,
626626
`media-src ${webview.cspSource}`,
627627
`script-src 'unsafe-eval' ${webview.cspSource} https://* https://*.posthog.com http://${localServerUrl} http://0.0.0.0:${localPort} 'nonce-${nonce}'`,
628628
`connect-src https://* https://*.posthog.com ws://${localServerUrl} ws://0.0.0.0:${localPort} http://${localServerUrl} http://0.0.0.0:${localPort}`,
@@ -707,7 +707,7 @@ export class ClineProvider
707707
<meta charset="utf-8">
708708
<meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no">
709709
<meta name="theme-color" content="#000000">
710-
<meta http-equiv="Content-Security-Policy" content="default-src 'none'; font-src ${webview.cspSource}; style-src ${webview.cspSource} 'unsafe-inline'; img-src ${webview.cspSource} https://storage.googleapis.com https://img.clerk.com data:; media-src ${webview.cspSource}; script-src ${webview.cspSource} 'wasm-unsafe-eval' 'nonce-${nonce}' https://us-assets.i.posthog.com 'strict-dynamic'; connect-src https://openrouter.ai https://api.requesty.ai https://us.i.posthog.com https://us-assets.i.posthog.com;">
710+
<meta http-equiv="Content-Security-Policy" content="default-src 'none'; font-src ${webview.cspSource}; style-src ${webview.cspSource} 'unsafe-inline'; img-src ${webview.cspSource} data:; media-src ${webview.cspSource}; script-src ${webview.cspSource} 'wasm-unsafe-eval' 'nonce-${nonce}' https://us-assets.i.posthog.com 'strict-dynamic'; connect-src https://openrouter.ai https://api.requesty.ai https://us.i.posthog.com https://us-assets.i.posthog.com;">
711711
<link rel="stylesheet" type="text/css" href="${stylesUri}">
712712
<link href="${codiconsUri}" rel="stylesheet" />
713713
<script nonce="${nonce}">

0 commit comments

Comments
 (0)