Skip to content

Commit

Permalink
use cors proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
klovaaxel authored Oct 31, 2023
1 parent ef442ca commit 0064396
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,9 @@ <h1>Url2Logo</h1>
<script>
async function getLogoFromURL(url) {
try {
response = await fetch(url, { redirect: "follow" });
response = await fetch("https://corsproxy.io/?" + url, {
redirect: "follow",
});
data = await response.text();
return (logoURL = extractLogoURL(data, url));
} catch (error) {
Expand Down

0 comments on commit 0064396

Please sign in to comment.