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 <[email protected]>
This commit is contained in:
Julien HerrandClaude Sonnet 4.6 committed 2026-05-21 23:46:51 +02:00
1 parent ece237c0af
commit 57e0cc5413
5 files changed
+104 -94

No files matched your search

+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",