This is an automated email from the ASF dual-hosted git repository.
akaashrp pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tvm.git
The following commit(s) were added to refs/heads/main by this push:
new 89a42ae9c4 [Fix] Add `origins` option to `requestFileHandle` (#19960)
89a42ae9c4 is described below
commit 89a42ae9c42fca06dd559ebbfba2e773a8e2cb49
Author: Thomas Steiner <[email protected]>
AuthorDate: Sun Jul 12 08:02:07 2026 +0200
[Fix] Add `origins` option to `requestFileHandle` (#19960)
---
web/src/artifact_cache.ts | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/web/src/artifact_cache.ts b/web/src/artifact_cache.ts
index 092f1fe3ee..da655da4e3 100644
--- a/web/src/artifact_cache.ts
+++ b/web/src/artifact_cache.ts
@@ -111,6 +111,7 @@ interface CrossOriginStorageHandle {
interface CrossOriginStorageRequestFileHandleOptions {
create?: boolean;
+ origins?: string[] | string | undefined;
}
interface CrossOriginStorageWritable {
@@ -188,7 +189,7 @@ class CrossOriginStorage {
if (!api) {
throw new Error("Cross-origin storage API unavailable.");
}
- const handle = await api.requestFileHandle(hash, { create: true });
+ const handle = await api.requestFileHandle(hash, { create: true, origins:
"*" /* All origins */ });
if (!handle) {
throw new Error("Cross-origin storage API returned no handle.");
}