video card mode no cors

This commit is contained in:
BFlat committed 2024-02-28 13:54:57 +07:00
1 parent a0677629f6
commit 5e04b80dd3
1 file changed
+2 -2
@@ -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;