Replace localhost origin with openfront.io

This commit is contained in:
oleksandr-shysh
2025-06-12 11:25:33 +03:00
parent 5ff04ff627
commit def15c2f80
+5 -1
View File
@@ -20,7 +20,11 @@ function getLocalIP() {
const config = getServerConfigFromServer();
const origin = config.origin();
const allowedOrigins = [origin, "capacitor://localhost", "http://localhost"];
const allowedOrigins = [
origin,
"capacitor://openfront.io",
"https://openfront.io",
];
if (config.env() === GameEnv.Dev) {
const localIp = getLocalIP();