ITADN

CORS middleware: `origin` should be optional

#4904OpenWiktorKryzia 创建于 2026-05-04
W
WiktorKryziacommented
Currently `origin` is a required member of `CORSOptions`, but according to [the documentation](https://hono.dev/docs/middleware/builtin/cors#origin-string-string-origin-string-c-context-string) and the fact that it has default value, it should be optional.
0 条评论