Harden gameplay timing and map loading
This commit is contained in:
@@ -50,7 +50,9 @@ export function verifyOrigin(
|
||||
configuration: OriginConfiguration = {
|
||||
websiteUrl: process.env.MINEGEO_URL,
|
||||
additionalOrigins: process.env.MINEGEO_ALLOWED_ORIGINS,
|
||||
allowAnyOrigin: process.env.MINEGEO_ALLOW_ANY_ORIGIN === "true",
|
||||
allowAnyOrigin:
|
||||
process.env.NODE_ENV !== "production" &&
|
||||
process.env.MINEGEO_ALLOW_ANY_ORIGIN === "true",
|
||||
},
|
||||
) {
|
||||
if (request.method === "GET" || request.method === "HEAD") return;
|
||||
|
||||
Reference in New Issue
Block a user