mirror of
https://github.com/dtzp555-max/ocp.git
synced 2026-07-21 21:15:09 +00:00
fix: make /dashboard a public endpoint (no auth required)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
+1
-1
@@ -1039,7 +1039,7 @@ const server = createServer(async (req, res) => {
|
||||
if (req.method === "OPTIONS") { res.writeHead(204); res.end(); return; }
|
||||
|
||||
// 3-mode auth: none | shared | multi
|
||||
const isPublicEndpoint = req.url === "/health";
|
||||
const isPublicEndpoint = req.url === "/health" || req.url === "/dashboard";
|
||||
let authKeyName = "local";
|
||||
let authKeyId = null;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user