Blog
Bun runtime: native fetch performance, CORS headers in HTTP servers, and compatibility with Node middleware
Bun’s `Bun.serve` can attach CORS headers in one object—verify header casing matches what browsers send in preflight.
1 min read
bunruntimecors
SQLite and plugins
Embedded SQLite in Bun does not affect CORS—still isolate API routes that expose SQL to the browser.
Native plugins may crash the process—wrap CORS error responses in try/catch at the server boundary.
Transpiling
Bun can bundle TypeScript directly—ensure source maps do not leak internal hostnames in CORS error pages.
