提交 8b62d8ab 编写于 作者: M Matt Bierner

Add cors header to webview resource response

上级 03da6308
......@@ -66,7 +66,8 @@ export class WebviewProtocolProvider extends Disposable {
statusCode: 200,
data: streamToNodeReadable(result.stream),
headers: {
'content-type': result.mimeType
'Content-Type': result.mimeType,
'Access-Control-Allow-Origin': '*',
}
});
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册