refactor(cors): replace manual CORS middleware with hono/cors

Fixes a bug where routes returning raw `new Response()` (RSS, Atom,
entries) were not receiving CORS headers — hono/cors applies headers
after next(), covering all response paths.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Julien Herr
2026-05-21 23:46:21 +02:00
parent ece237c0af
commit 57e0cc5413
5 changed files with 104 additions and 94 deletions
+1
View File
@@ -45,6 +45,7 @@
"wrangler": "^4.63.0"
},
"dependencies": {
"@hono/zod-validator": "^0.8.0",
"feed": "^5.2.0",
"hono": "^4.11.7",
"postal-mime": "^2.7.4",