fix(request): Cross origin issue with fetching image and video (#3416)
* Cross origin issue when - rendering thumbnails from prerendered url - playing videos * empty commit to trigger CI/CD check * empty commit to trigger CI/CD check
This commit is contained in:
parent
770c677394
commit
217b330d7b
@ -29,6 +29,7 @@ function OHIFCornerstoneVideoViewport({ displaySets }) {
|
|||||||
controlsList="nodownload"
|
controlsList="nodownload"
|
||||||
preload="auto"
|
preload="auto"
|
||||||
className="w-full h-full"
|
className="w-full h-full"
|
||||||
|
crossOrigin="anonymous"
|
||||||
>
|
>
|
||||||
<source src={url} type={mimeType} />
|
<source src={url} type={mimeType} />
|
||||||
<source src={url} type={mimeType} />
|
<source src={url} type={mimeType} />
|
||||||
|
|||||||
@ -63,6 +63,7 @@ const Thumbnail = ({
|
|||||||
src={imageSrc}
|
src={imageSrc}
|
||||||
alt={imageAltText}
|
alt={imageAltText}
|
||||||
className="object-none min-h-32"
|
className="object-none min-h-32"
|
||||||
|
crossOrigin="anonymous"
|
||||||
/>
|
/>
|
||||||
) : (
|
) : (
|
||||||
<div>{imageAltText}</div>
|
<div>{imageAltText}</div>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user