mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-17 15:15:17 +00:00
video card mode no cors
This commit is contained in:
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;
|
||||
|
||||
Reference in new issue
Block a user