diff --git a/attached_assets/Pasted-GET-src-components-layout-Sidebar-tsx-429-0ms-GET-src-components-tasks-TaskList-tsx-429-1ms-GET-s-1749366571565_1749366571565.txt b/attached_assets/Pasted-GET-src-components-layout-Sidebar-tsx-429-0ms-GET-src-components-tasks-TaskList-tsx-429-1ms-GET-s-1749366571565_1749366571565.txt new file mode 100644 index 0000000..b0c460f --- /dev/null +++ b/attached_assets/Pasted-GET-src-components-layout-Sidebar-tsx-429-0ms-GET-src-components-tasks-TaskList-tsx-429-1ms-GET-s-1749366571565_1749366571565.txt @@ -0,0 +1,47 @@ +GET /src/components/layout/Sidebar.tsx 429 0ms +GET /src/components/tasks/TaskList.tsx 429 1ms +GET /src/components/voice/VoiceRecorder.tsx 429 1ms +GET /src/components/financial/FinancialOverview.tsx 429 0ms +GET /src/components/ui/input.tsx 429 0ms +GET /src/components/ui/label.tsx 429 0ms +GET /src/components/ui/alert.tsx 429 1ms +GET /src/components/ui/checkbox.tsx 429 1ms +GET /src/components/ui/select.tsx 429 1ms +GET /src/components/ui/tabs.tsx 429 1ms +GET /src/components/ui/avatar.tsx 429 0ms +GET /src/components/ui/dialog.tsx 429 1ms +[ioredis] Unhandled error event: Error: connect ECONNREFUSED 127.0.0.1:6379 + at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1611:16) +GET /src/components/ui/textarea.tsx 429 0ms +GET /src/components/ui/separator.tsx 429 0ms +GET /src/components/ui/switch.tsx 429 0ms +GET /src/components/ui/progress.tsx 429 1ms +GET /src/components/voice/VoiceShortcuts.tsx 429 0ms +GET /src/components/ui/dropdown-menu.tsx 429 0ms +GET /src/components/ui/button.tsx 429 0ms +GET /src/services/authService.ts 429 0ms +GET /src/hooks/useVoice.ts 429 2ms +GET /src/components/ui/badge.tsx 429 1ms +GET /src/components/ui/card.tsx 429 1ms +GET /src/components/ui/input.tsx 429 0ms +GET /src/components/ui/alert.tsx 429 0ms +GET /src/components/ui/label.tsx 429 0ms +GET /src/components/ui/checkbox.tsx 429 1ms +GET /src/components/ui/select.tsx 429 1ms +GET /src/components/ui/tabs.tsx 429 0ms +GET /src/components/ui/dialog.tsx 429 1ms +GET /src/components/ui/textarea.tsx 429 1ms +GET /src/components/ui/avatar.tsx 429 0ms +GET /src/components/ui/separator.tsx 429 1ms +GET /src/components/voice/VoiceShortcuts.tsx 429 0ms +GET /src/components/ui/dropdown-menu.tsx 429 0ms +[ioredis] Unhandled error event: Error: connect ECONNREFUSED 127.0.0.1:6379 + at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1611:16) +[ioredis] Unhandled error event: Error: connect ECONNREFUSED 127.0.0.1:6379 + at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1611:16) +[ioredis] Unhandled error event: Error: connect ECONNREFUSED 127.0.0.1:6379 + at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1611:16) +[ioredis] Unhandled error event: Error: connect ECONNREFUSED 127.0.0.1:6379 + at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1611:16) +[ioredis] Unhandled error event: Error: connect ECONNREFUSED 127.0.0.1:6379 + at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1611:16) \ No newline at end of file diff --git a/server/middleware/security.ts b/server/middleware/security.ts index 6b754a6..67bf712 100644 --- a/server/middleware/security.ts +++ b/server/middleware/security.ts @@ -6,13 +6,19 @@ import type { Request, Response, NextFunction } from 'express'; // Rate limiting configurations export const generalRateLimit = rateLimit({ windowMs: 15 * 60 * 1000, // 15 minutes - max: 100, // 100 requests per window + max: 1000, // 1000 requests per window (increased for development) message: { error: 'Too many requests from this IP, please try again later.', retryAfter: '15 minutes' }, standardHeaders: true, - legacyHeaders: false + legacyHeaders: false, + skip: (req) => { + // Skip rate limiting for static assets and development + return req.path.includes('/src/') || req.path.includes('/@') || + req.path.includes('.js') || req.path.includes('.css') || + process.env.NODE_ENV === 'development'; + } }); export const authRateLimit = rateLimit({