Skip to content

feat: CORS headers, db query caching, global rate limit, request validation - #502

Merged
ritaifeoluwa merged 2 commits into
SmartDropLabs:mainfrom
chukwuemekarita:feat/cors-cache-rate-limit-validation
Oct 17, 2026
Merged

ritaifeoluwa merged 2 commits into
SmartDropLabs:mainfrom
chukwuemekarita:feat/cors-cache-rate-limit-validation

Conversation

@chukwuemekarita

Copy link
Copy Markdown
Contributor

Closes

Closes #450
Closes #451
Closes #452
Closes #453

What changed

chukwuemekarita and others added 2 commits October 17, 2026 11:07
…dation

- SmartDropLabs#453: Add exposedHeaders for X-Request-Id and rate limit headers,
  add PUT method and additional allowed headers to CORS config
- SmartDropLabs#452: Add dbCache.js with cachedQuery wrapper for database query caching
  with Redis backend, configurable TTL, and cache invalidation support
- SmartDropLabs#451: Add global rate limit middleware applied to ALL requests (not just
  /api/v1) to prevent abuse of non-API routes
- SmartDropLabs#450: Add requestValidation middleware to reject POST/PUT/PATCH without
  proper Content-Type and validate JSON content type
@drips-wave

drips-wave Bot commented Oct 17, 2026

Copy link
Copy Markdown

@chukwuemekarita Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@ritaifeoluwa
ritaifeoluwa merged commit 05d3337 into SmartDropLabs:main Oct 17, 2026
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants