web/webapp: fix cors error on file download

This commit is contained in:
bflatastic committed 2026-05-15 20:42:32 +07:00
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"
/>