fix(auth): add CORS headers to BetterAuth raw HTTP handler #112
Reference in New Issue
Block a user
Delete Branch "fix/auth-cors-headers"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Auth handler uses reply.hijack() which bypasses NestJS CORS. Now manually sets CORS headers and handles OPTIONS preflight before delegating to BetterAuth.