This commit is contained in:
Louis Lam 2023-12-08 01:01:12 +08:00
parent d0712d77ab
commit 7a0d4fc62a

View file

@ -196,7 +196,7 @@ export class DockgeServer {
cors,
allowRequest: (req, callback) => {
let isOriginValid = true;
const bypass = isDev || process.env.UPTIME_KUMA_WS_ORIGIN_CHECK === "bypass";
const bypass = isDev;
if (!bypass) {
let host = req.headers.host;