index: remove cors proxy thing

This commit is contained in:
Adam
2023-06-08 20:18:49 +01:00
parent 9e89890ff2
commit 98d19698fb

View File

@@ -103,6 +103,7 @@
xml.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
xml.setRequestHeader("Accept", "application/json");
xml.send(post_data);
}
break;
case "initAuth":
@@ -137,7 +138,7 @@
}
function handleGameLogin(s, credentials, id) {
const auth_url = "https://thingproxy.freeboard.io/fetch/".concat(atob(s.profile_api).concat("/profile"));
const auth_url = atob(s.profile_api).concat("/profile");
var xml = new XMLHttpRequest();
xml.onreadystatechange = () => {
if (xml.readyState == 4 && xml.status == 200) {