pod-os / PodOS

Personal Online Data Operating System
MIT License
14 stars 1 forks source link

pos-image could fall back on non-data URI #38

Closed josephguillaume closed 2 months ago

josephguillaume commented 2 months ago

pos-image fails to fetch on public URLs without cors enabled, e.g.,

`

`

In cases like this, it would make sense to not use a data uri. Perhaps this could be detected based on status code from the fetch? https://github.com/pod-os/PodOS/blob/7d2693a3b47cc3bc837060bc761d5aabf42c2b27/elements/src/components/pos-image/pos-image.tsx#L51

angelo-v commented 2 months ago

fixed in the latest version 0.18.0