From 0b101d12789bb318971ec3aa0f6a9b23da4894a8 Mon Sep 17 00:00:00 2001 From: creeper123123321 <7974274+creeper123123321@users.noreply.github.com> Date: Sun, 28 Feb 2021 07:01:16 -0300 Subject: [PATCH] set crp123-cors as default cors proxy --- src/main/resources/web/auth.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/resources/web/auth.js b/src/main/resources/web/auth.js index ef3cee8..bf47560 100644 --- a/src/main/resources/web/auth.js +++ b/src/main/resources/web/auth.js @@ -43,7 +43,7 @@ function icanhazip(cors) { // Proxy function defaultCors() { - return window.location.host == "viaversion.github.io" ? "https://crp123-cors.herokuapp.com/" : "http://localhost:8080/"; + return "https://crp123-cors.herokuapp.com/"; } function getCorsProxy() { return localStorage.getItem("cors-proxy") || defaultCors();