Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cross-domain not working on Chrome 110 #39

Open
mikob opened this issue Mar 8, 2023 · 1 comment
Open

Cross-domain not working on Chrome 110 #39

mikob opened this issue Mar 8, 2023 · 1 comment

Comments

@mikob
Copy link

mikob commented Mar 8, 2023

Linux Mint 21, Chrome 110:
http://jsbin.com/veley/1/edit?html,js

Does not work. Also tried with different subdomain, still doesn't work. Only works if it's on the same exact domain.

@mikob
Copy link
Author

mikob commented Mar 8, 2023

Workaround using this technique (tested working on iOS 14 Safari and Chrome 110):

    const links = [
          ...
    ];

    const blobs = await Promise.all(
        links.map((link) => fetch(link).then((res) => res.blob()))
    );
    const blobLinks = blobs.map((blob) => URL.createObjectURL(blob));

    multiDownload(blobLinks, {
        rename: ({ url, index, urls }) => {
            return `image-${index}.png`;
        },
    });

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant