summaryrefslogtreecommitdiff
path: root/apps/web/lib/rate-limit.ts
diff options
context:
space:
mode:
authorFuwn <[email protected]>2026-02-07 05:35:28 -0800
committerFuwn <[email protected]>2026-02-07 05:35:28 -0800
commitc4b2813cc07a72ad7186347a2e003c01cf0d4fb0 (patch)
treeef9e2991084139e649dc7f6d3ada0795789a55f0 /apps/web/lib/rate-limit.ts
parentfix: dynamically calculate detail panel equal split from current layout (diff)
downloadasa.news-c4b2813cc07a72ad7186347a2e003c01cf0d4fb0.tar.xz
asa.news-c4b2813cc07a72ad7186347a2e003c01cf0d4fb0.zip
security: remove unsafe-eval CSP, fix host header injection, harden API routes
- Remove unsafe-eval from script-src CSP (not needed in production) - Replace Host/Origin header fallback with NEXT_PUBLIC_APP_URL in share and checkout routes to prevent host header injection - Add .catch() to request.json() in share POST and PATCH routes - Add rate limiting (3/min) to account deletion endpoint
Diffstat (limited to 'apps/web/lib/rate-limit.ts')
0 files changed, 0 insertions, 0 deletions