Skip to content

Commit 97ea564

Browse files
authored
Fix images not loading (#27)
coder/code-server#3410
1 parent 41de341 commit 97ea564

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/vs/workbench/api/common/extHostWebview.ts

+5-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,11 @@ export class ExtHostWebview implements vscode.Webview {
8585
}
8686
return extensionCspRule + ' ' + webviewGenericCspSource;
8787
}
88-
return webviewGenericCspSource;
88+
/**
89+
* When not using a CDN content loads from self.
90+
* @author coder
91+
*/
92+
return `'self' ` + webviewGenericCspSource;
8993
}
9094

9195
public get html(): string {

0 commit comments

Comments
 (0)