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}`; } }