Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion web/src/artifact_cache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ interface CrossOriginStorageHandle {

interface CrossOriginStorageRequestFileHandleOptions {
create?: boolean;
origins?: string[] | string | undefined;
}

interface CrossOriginStorageWritable {
Expand Down Expand Up @@ -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: "*" });
Comment thread
tomayac marked this conversation as resolved.
Outdated
Comment thread
tomayac marked this conversation as resolved.
Outdated
if (!handle) {
throw new Error("Cross-origin storage API returned no handle.");
}
Expand Down
Loading