mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-06 18:21:12 +00:00
remove no cors
This commit is contained in:
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) {
|
||||
|
||||
Reference in new issue
Block a user