mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-24 05:08:00 +00:00
Remove redundant HTTPS localhost origin
This commit is contained in:
+2
-2
@@ -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`);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user