ciscoheat / sveltekit-rate-limiter

A modular rate limiter for SvelteKit. Use in password resets, account registration, etc.
MIT License
216 stars 3 forks source link

Added header to response and a hooks.server ex #2

Closed niktek closed 8 months ago

niktek commented 11 months ago

Just tweaked the example a bit as it was using a return fail() and it doesn't seem like you can add headers when throwing error() so just returned a response with the headers set.