mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-22 01:37:43 +00:00
Replace localhost origin with openfront.io
This commit is contained in:
+5
-1
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user