Remove localhost origins

This commit is contained in:
oleksandr-shysh
2025-06-11 12:14:48 +03:00
parent 5e9e937ab6
commit d36b5b73a1
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -20,7 +20,7 @@ function getLocalIP() {
const config = getServerConfigFromServer();
const origin = config.origin();
const allowedOrigins = [origin, "capacitor://localhost", "http://localhost"];
const allowedOrigins = [origin];
if (config.env() === GameEnv.Dev) {
const localIp = getLocalIP();
+1 -1
View File
@@ -5,7 +5,7 @@ import { GameID } from "../../src/core/Schemas";
export class TestServerConfig implements ServerConfig {
origin(): string {
return "http://localhost:9000";
return "unused";
}
cloudflareConfigPath(): string {
throw new Error("Method not implemented.");