From eeb9ff662ea737d84246ff354eb1fee0e0762812 Mon Sep 17 00:00:00 2001 From: zomars Date: Thu, 2 Jun 2022 13:20:48 -0600 Subject: [PATCH] Adds cors to checkLicense --- packages/ee/server/checkLicense.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/ee/server/checkLicense.ts b/packages/ee/server/checkLicense.ts index cf359912e4..e8d0fb6b02 100644 --- a/packages/ee/server/checkLicense.ts +++ b/packages/ee/server/checkLicense.ts @@ -12,7 +12,7 @@ async function checkLicense(license: string): Promise { 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;