Adds cors to checkLicense

This commit is contained in:
zomars
2022-06-02 13:20:48 -06:00
parent 262df1a1b2
commit eeb9ff662e
+1 -1
View File
@@ -12,7 +12,7 @@ async function checkLicense(license: string): Promise<boolean> {
return cachedResponse;
} else {
try {
const response = await fetch(url);
const response = await fetch(url, { mode: "cors" });
const data = await response.json();
cache.put(url, data.valid, CACHING_TIME);
return data.valid;