mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-21 09:08:53 +01:00
Support loading webviews from wildcard endpoints
Fixes #77132 Add support for loading webviews from and endpoint that looks like: ``` https://{{uuid}}.contoso.com/path/to/some/commit/index.html ``` This lets us serve each webview from a seperate origin
This commit is contained in:
@@ -40,7 +40,7 @@ export class ExtHostWebview implements vscode.Webview {
|
||||
}
|
||||
|
||||
public get cspSource(): string {
|
||||
return this._initData.webviewCspSource;
|
||||
return this._initData.webviewCspSource.replace('{{uuid}}', this._handle);
|
||||
}
|
||||
|
||||
public get html(): string {
|
||||
|
||||
Reference in New Issue
Block a user