mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-30 02:02:36 +00:00
Remove localhost origins
This commit is contained in:
+1
-1
@@ -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();
|
||||
|
||||
@@ -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.");
|
||||
|
||||
Reference in New Issue
Block a user