Remove redundant HTTPS localhost origin

This commit is contained in:
oleksandr-shysh
2025-06-11 12:58:53 +03:00
parent d36b5b73a1
commit e0aa23f433
+2 -2
View File
@@ -20,12 +20,12 @@ function getLocalIP() {
const config = getServerConfigFromServer();
const origin = config.origin();
const allowedOrigins = [origin];
const allowedOrigins = [origin, "capacitor://localhost", "http://localhost"];
if (config.env() === GameEnv.Dev) {
const localIp = getLocalIP();
if (localIp) {
allowedOrigins.push(`http://${localIp}:9000`, `https://${localIp}:9000`);
allowedOrigins.push(`http://${localIp}:9000`);
}
}