From 532a4e2dc5209c44e75ff0e0d4f2c247574561f7 Mon Sep 17 00:00:00 2001 From: anti Date: Wed, 8 Apr 2026 21:15:26 -0400 Subject: [PATCH] fix: resolve SSE CORS issues and fix date filter format mismatch --- decnet/web/api.py | 2 +- decnet_web/src/components/LiveLogs.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/decnet/web/api.py b/decnet/web/api.py index 4195feb..996dde2 100644 --- a/decnet/web/api.py +++ b/decnet/web/api.py @@ -63,7 +63,7 @@ app: FastAPI = FastAPI( app.add_middleware( CORSMiddleware, allow_origins=["*"], - allow_credentials=True, + allow_credentials=False, allow_methods=["*"], allow_headers=["*"], ) diff --git a/decnet_web/src/components/LiveLogs.tsx b/decnet_web/src/components/LiveLogs.tsx index 7dd44e1..de311d4 100644 --- a/decnet_web/src/components/LiveLogs.tsx +++ b/decnet_web/src/components/LiveLogs.tsx @@ -99,7 +99,7 @@ const LiveLogs: React.FC = () => { if (timeRange !== 'all') { const minutes = timeRange === '15m' ? 15 : timeRange === '1h' ? 60 : timeRange === '24h' ? 1440 : 0; if (minutes > 0) { - const startTime = new Date(Date.now() - minutes * 60000).toISOString(); + const startTime = new Date(Date.now() - minutes * 60000).toISOString().replace('T', ' ').substring(0, 19); url += `&start_time=${startTime}`; } }