remove no cors

This commit is contained in:
BFlat committed 2024-02-28 14:08:05 +07:00
1 parent 8484d20af6
commit 5aae7e2af4
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", 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) {