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, cors,
allowRequest: (req, callback) => { allowRequest: (req, callback) => {
let isOriginValid = true; let isOriginValid = true;
const bypass = isDev || process.env.UPTIME_KUMA_WS_ORIGIN_CHECK === "bypass"; const bypass = isDev;
if (!bypass) { if (!bypass) {
let host = req.headers.host; let host = req.headers.host;