mirror of
https://github.com/louislam/dockge.git
synced 2026-05-22 06:22:17 +00:00
Fix
This commit is contained in:
@@ -209,7 +209,7 @@ export class DockgeServer {
|
|||||||
try {
|
try {
|
||||||
let originURL = new URL(origin);
|
let originURL = new URL(origin);
|
||||||
|
|
||||||
if (host !== originURL.hostname) {
|
if (host !== originURL.host) {
|
||||||
isOriginValid = false;
|
isOriginValid = false;
|
||||||
log.error("auth", `Origin (${origin}) does not match host (${host}), IP: ${req.socket.remoteAddress}`);
|
log.error("auth", `Origin (${origin}) does not match host (${host}), IP: ${req.socket.remoteAddress}`);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user