mirror of
https://github.com/Microsoft/vscode
synced 2024-09-19 10:40:41 +00:00
trusted ext urls: use 1 hour instead of 10 mins
This commit is contained in:
parent
14415847e1
commit
1e0af43774
|
@ -58,7 +58,7 @@ export class ExtensionUrlTrustService implements IExtensionUrlTrustService {
|
|||
const timestamp = fragmentBuffer.readUIntBE(0, 6);
|
||||
const diff = Date.now() - timestamp;
|
||||
|
||||
if (diff < 0 || diff > 600_000) { // 10 minutes
|
||||
if (diff < 0 || diff > 3_600_000) { // 1 hour
|
||||
this.logService.trace('ExtensionUrlTrustService#isExtensionUrlTrusted', 'Signed uri has expired', url);
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue