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:
M.D 2023-05-26 08:32:00 -04:00 committed by GitHub
parent 770c677394
commit 217b330d7b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View File

@ -29,6 +29,7 @@ function OHIFCornerstoneVideoViewport({ displaySets }) {
controlsList="nodownload"
preload="auto"
className="w-full h-full"
crossOrigin="anonymous"
>
<source src={url} type={mimeType} />
<source src={url} type={mimeType} />

View File

@ -63,6 +63,7 @@ const Thumbnail = ({
src={imageSrc}
alt={imageAltText}
className="object-none min-h-32"
crossOrigin="anonymous"
/>
) : (
<div>{imageAltText}</div>