From 5aae7e2af4b74d4d2e863d8a771e83e14a934fe6 Mon Sep 17 00:00:00 2001 From: BFlat Date: Wed, 28 Feb 2024 14:08:05 +0700 Subject: [PATCH] remove 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 d906cc4d36..e465ec3f5a 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", mode: "no-cors" }); + const response = await fetch(url, { method: "GET" }); console.log("RESPONSE GIF", response); return response.ok; } catch (error) { @@ -70,7 +70,7 @@ export default function VideoCard({ const checkImageExists = async (url: string) => { try { - const response = await fetch(url, { method: "GET", mode: "no-cors" }); + const response = await fetch(url, { method: "GET" }); console.log("RESPONSE IMAGE", response); return response.ok; } catch (error) {