mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-12 21:02:14 +00:00
web/webapp: fix cors error on file download
This commit is contained in:
1 parent
9c0033c673
commit
4a3d239735
2 files changed
+4
No files matched your search
@@ -398,6 +398,7 @@ export function Lightbox({
|
||||
<div className="relative flex h-full items-center justify-center overflow-hidden bg-black">
|
||||
<img
|
||||
src={addCorsParam(url) || url}
|
||||
crossOrigin="anonymous"
|
||||
alt={`Image ${idx + 1}`}
|
||||
className="h-full w-full object-contain"
|
||||
onError={(e) => {
|
||||
@@ -445,6 +446,7 @@ export function Lightbox({
|
||||
>
|
||||
<img
|
||||
src={addCorsParam(url) || url}
|
||||
crossOrigin="anonymous"
|
||||
alt={`Thumbnail ${idx + 1}`}
|
||||
className="h-full w-full object-cover bg-black/20"
|
||||
/>
|
||||
|
||||
@@ -398,6 +398,7 @@ export function Lightbox({
|
||||
<div className="relative flex h-full items-center justify-center overflow-hidden bg-black">
|
||||
<img
|
||||
src={addCorsParam(url) || url}
|
||||
crossOrigin="anonymous"
|
||||
alt={`Image ${idx + 1}`}
|
||||
className="h-full w-full object-contain"
|
||||
onError={(e) => {
|
||||
@@ -445,6 +446,7 @@ export function Lightbox({
|
||||
>
|
||||
<img
|
||||
src={addCorsParam(url) || url}
|
||||
crossOrigin="anonymous"
|
||||
alt={`Thumbnail ${idx + 1}`}
|
||||
className="h-full w-full object-cover bg-black/20"
|
||||
/>
|
||||
|
||||
Reference in new issue
Block a user