arcjet / arcjet-js

Arcjet JS SDKs. Rate limiting, bot protection, email verification & attack defense for Node.js, Next.js, Bun & SvelteKit.
https://arcjet.com
Apache License 2.0
224 stars 4 forks source link

Implement content negotiation using `Accept` header #37

Open blaine-arcjet opened 9 months ago

blaine-arcjet commented 9 months ago

When using createMiddleware or withArcjet via @arcjet/next, the handlers should use content negotiation to figure out what format to send back (json/html/etc).

blaine-arcjet commented 8 months ago

Research links: