use proxy

This commit is contained in:
Daniel Bulant 2021-05-22 13:38:26 +02:00
parent dff2f98172
commit 7b350219bf

View file

@ -1,4 +1,4 @@
const base = "https://api.mangadex.org/";
const base = "https://cors-anywhere.danbulant.workers.dev/?https://api.mangadex.org/";
function request(endpoint, query, type = "GET", body) {
return fetch(base + endpoint + (query ? "?" + query : ""), {