Skip to content

Commit 2215266

Browse files
committed
Added cors
1 parent 7892d29 commit 2215266

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
@@ -612,7 +612,7 @@ export class ClineProvider extends EventEmitter<ClineProviderEvents> implements
612612
`style-src ${webview.cspSource} 'unsafe-inline' https://* http://${localServerUrl} http://0.0.0.0:${localPort}`,
613613
`img-src ${webview.cspSource} data:`,
614614
`script-src 'unsafe-eval' https://* https://*.posthog.com http://${localServerUrl} http://0.0.0.0:${localPort} 'nonce-${nonce}'`,
615-
`connect-src https://* https://*.posthog.com 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`,
615+
`connect-src https://* https://*.posthog.com 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://server.trypear.ai`,
616616
]
617617

618618
return /*html*/ `
@@ -701,7 +701,7 @@ export class ClineProvider extends EventEmitter<ClineProviderEvents> implements
701701
<meta charset="utf-8">
702702
<meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no">
703703
<meta name="theme-color" content="#000000">
704-
<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}' https://us-assets.i.posthog.com; connect-src https://openrouter.ai https://us.i.posthog.com https://us-assets.i.posthog.com ${webview.cspSource} https://stingray-app-gb2an.ondigitalocean.app;">
704+
<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}' https://us-assets.i.posthog.com; connect-src https://openrouter.ai https://us.i.posthog.com https://us-assets.i.posthog.com ${webview.cspSource} https://server.trypear.ai;">
705705
<link rel="stylesheet" type="text/css" href="${stylesUri}">
706706
<link href="${codiconsUri}" rel="stylesheet" />
707707
<title>Roo Code</title>

0 commit comments

Comments
 (0)