mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-27 20:13:32 +01:00
set cors mode
This commit is contained in:
@@ -50,6 +50,7 @@ class ExtensionResourceLoaderService implements IExtensionResourceLoaderService
|
||||
if (this._productService.commit) {
|
||||
requestInit.headers['X-Client-Commit'] = this._productService.commit;
|
||||
}
|
||||
requestInit.mode = 'cors'; /* set mode to cors so that above headers are always passed */
|
||||
}
|
||||
|
||||
const response = await fetch(uri.toString(true), requestInit);
|
||||
|
||||
Reference in New Issue
Block a user