mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-02 06:21:50 +01:00
Wrap web worker extension host in an iframe to get a different origin
This commit is contained in:
@@ -254,7 +254,9 @@ async function handleBuiltInExtension(req, res, parsedUrl) {
|
||||
if (!filePath) {
|
||||
return serveError(req, res, 400, `Bad request.`);
|
||||
}
|
||||
return serveFile(req, res, filePath);
|
||||
return serveFile(req, res, filePath, {
|
||||
'Access-Control-Allow-Origin': '*'
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user