From 32d4047278f04a9e1ab32c450db78ac72d994afb Mon Sep 17 00:00:00 2001 From: ZareMate <0.zaremate@gmail.com> Date: Fri, 9 Jan 2026 05:01:03 +0100 Subject: [PATCH] add cors to /api/items --- server.js | 1 + 1 file changed, 1 insertion(+) diff --git a/server.js b/server.js index 81d5c230..081482a5 100644 --- a/server.js +++ b/server.js @@ -158,6 +158,7 @@ wss.on("connection", (ws, req) => { // API endpoint that returns the latest items as JSON app.get("/api/items", (req, res) => { + res.set("Access-Control-Allow-Origin", "*"); // Return the whole latestItems object with metadata res.json({ ok: true,