Skip to content

Commit 92e3de4

Browse files
committed
Added connection allow
1 parent deedf9e commit 92e3de4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/core/webview/ClineProvider.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ export class ClineProvider implements vscode.WebviewViewProvider {
423423
`style-src ${webview.cspSource} 'unsafe-inline' https://* http://${localServerUrl} http://0.0.0.0:${localPort}`,
424424
`img-src ${webview.cspSource} data:`,
425425
`script-src 'unsafe-eval' https://* http://${localServerUrl} http://0.0.0.0:${localPort} 'nonce-${nonce}'`,
426-
`connect-src https://* ws://${localServerUrl} ws://0.0.0.0:${localPort} http://${localServerUrl} http://0.0.0.0:${localPort} http://localhost:8000 http://0.0.0.0:8000`,
426+
`connect-src https://* ws://${localServerUrl} ws://0.0.0.0:${localPort} http://${localServerUrl} http://0.0.0.0:${localPort} http://localhost:8000 http://0.0.0.0:8000 https://stingray-app-gb2an.ondigitalocean.app`,
427427
]
428428

429429
return /*html*/ `
@@ -507,7 +507,7 @@ export class ClineProvider implements vscode.WebviewViewProvider {
507507
<meta charset="utf-8">
508508
<meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no">
509509
<meta name="theme-color" content="#000000">
510-
<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:; script-src 'nonce-${nonce}';">
510+
<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:; script-src 'nonce-${nonce}'; connect-src ${webview.cspSource} https://stingray-app-gb2an.ondigitalocean.app;">
511511
<link rel="stylesheet" type="text/css" href="${stylesUri}">
512512
<link href="${codiconsUri}" rel="stylesheet" />
513513
<title>Roo Code</title>

0 commit comments

Comments
 (0)