From 462d9ffb453d5f6b2e38cdd7893f3196abcd63e4 Mon Sep 17 00:00:00 2001 From: creeper123123321 <7974274+creeper123123321@users.noreply.github.com> Date: Tue, 9 Feb 2021 16:01:53 -0300 Subject: [PATCH] update cors status every 10 minutes --- src/main/resources/web/auth.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/resources/web/auth.js b/src/main/resources/web/auth.js index f0ad695..2cd7612 100644 --- a/src/main/resources/web/auth.js +++ b/src/main/resources/web/auth.js @@ -58,7 +58,8 @@ function setCorsProxy(url) { refreshCorsStatus(); } -refreshCorsStatus(); +// Heroku sleeps in 30 minutes, let's call it every 10 minutes to keep the same address, so Mojang see it as less suspect +setInterval(refreshCorsStatus, 10 * 60 * 1000); function loginMc(user, pass) { var clientToken = uuid.v4();