Add API security guards, rate limiter, and manual test checklist

Implement strict CORS enforcement and per-IP rate limiting in the Next.js middleware. Add input validation helpers for
coordinates and request body size limits. Introduce SSRF protection for calendar URL fetching. Update mobile settings to
support new transport options and arrival buffers. Include a comprehensive manual testing checklist for integration
verification.
This commit is contained in:
2026-05-12 14:42:11 +02:00
parent 863996f06c
commit 35971596b3
21 changed files with 1096 additions and 124 deletions
@@ -37,6 +37,9 @@ export function SettingsScreen({ navigation }: ScreenProps) {
const [notifSettings, setNotifSettings] = useState<ReminderSettings>({
bufferMinutes: 30,
enabled: true,
arrivalBufferMinutes: 5,
showWalkingOption: true,
showBikeOption: true,
});
const [locPermission, setLocPermission] = useState<'granted' | 'denied' | 'prompt'>('prompt');
const searchTimerRef = useRef<ReturnType<typeof setTimeout> | null>(null);
+3
View File
@@ -14,6 +14,9 @@ const NOTIFICATIONS_KEY = '@timetoleave_notifications';
const DEFAULT_NOTIFICATION_SETTINGS: ReminderSettings = {
bufferMinutes: 30,
enabled: true,
arrivalBufferMinutes: 5,
showWalkingOption: true,
showBikeOption: true,
};
// ── Helpers ───────────────────────────────────────────