Cannot save project to cloud or import project

I re-did the changes again and am running into the same problem.
The console shows this error at store.js?version=2023-07-27:2093

Uncaught DOMException: Failed to execute 'toDataURL' on 'HTMLCanvasElement': Tainted canvases may not be exported.
    at Costume.toXML (https://snap.berkeley.edu/snap/src/store.js?version=2023-07-27:2093:50)
    at https://snap.berkeley.edu/snap/src/store.js?version=2023-07-27:310:26
    at Array.forEach (<anonymous>)
    at XML_Serializer.mediaXML (https://snap.berkeley.edu/snap/src/store.js?version=2023-07-27:309:16)
    at IDE_Morph.buildProjectRequest (https://snap.berkeley.edu/snap/src/gui.js?version=2023-12-12:7925:32)
    at IDE_Morph.saveProjectToCloud (https://snap.berkeley.edu/snap/src/gui.js?version=2023-12-12:7979:24)
    at IDE_Morph.save (https://snap.berkeley.edu/snap/src/gui.js?version=2023-12-12:5674:18)
    at TriggerMorph.trigger (https://snap.berkeley.edu/snap/src/morphic.js?version=2023-11-07:9963:37)
    at MenuItemMorph.mouseClickLeft (https://snap.berkeley.edu/snap/src/morphic.js?version=2023-11-07:10250:14)
    at HandMorph.processMouseUp (https://snap.berkeley.edu/snap/src/morphic.js?version=2023-11-07:11579:29)

This same error appears when I try to export project as cloud data.

It looks like it's an issue with the costumes. Maybe try deleting the costumes then reimporting then.

A "tainted" image means, that you probably drag the image from another site to make a costume.
Download the image and drag it from the filesystem.
If the problem persists, look for information, if your OS does not flag downloaded files as "unsafe".

I usually drag images from the site directly and it has always worked.
Accidentally fixed it just by refreshing the page and restoring the unsaved project by holding shift on the file icon... lol.