Skip to content

Commit

Permalink
Update index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeswitz authored Jan 10, 2025
1 parent 4a5f6ca commit 07151bc
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -180,12 +180,13 @@

async function validateUrl(url) {
try {
const response = await fetch(url, {
method: 'HEAD'
});
return response.ok;
const response = await fetch(url, {
method: 'HEAD',
mode: 'no-cors'
});
return true; // If we get here without throwing, consider it valid
} catch (error) {
return false;
return false;
}
}

Expand Down Expand Up @@ -237,4 +238,4 @@
</script>

</body>
</html>
</html>

0 comments on commit 07151bc

Please sign in to comment.