From 5e04b80dd340053abccd95cba5051adb489ec068 Mon Sep 17 00:00:00 2001 From: BFlat Date: Wed, 28 Feb 2024 13:54:57 +0700 Subject: [PATCH] video card mode no cors --- .../src/components/common/Card/VideoCard/VideoCard.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/fakeyou.com/src/components/common/Card/VideoCard/VideoCard.tsx b/packages/fakeyou.com/src/components/common/Card/VideoCard/VideoCard.tsx index 298b1a8204..af2a97fe4e 100644 --- a/packages/fakeyou.com/src/components/common/Card/VideoCard/VideoCard.tsx +++ b/packages/fakeyou.com/src/components/common/Card/VideoCard/VideoCard.tsx @@ -60,7 +60,7 @@ export default function VideoCard({ const checkGifExists = async (url: string) => { try { - const response = await fetch(url, { method: "GET" }); + const response = await fetch(url, { method: "GET", mode: "no-cors" }); return response.ok; } catch (error) { return false; @@ -69,7 +69,7 @@ export default function VideoCard({ const checkImageExists = async (url: string) => { try { - const response = await fetch(url, { method: "GET" }); + const response = await fetch(url, { method: "GET", mode: "no-cors" }); return response.ok; } catch (error) { return false;