We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 57747e7 commit 902ad16Copy full SHA for 902ad16
src/app.ts
@@ -1,5 +1,6 @@
1
import { OpenAPIHono } from '@hono/zod-openapi'
2
import { apiReference } from '@scalar/hono-api-reference'
3
+import { cors } from 'hono/cors'
4
import { logger } from 'hono/logger'
5
import { prettyJSON } from 'hono/pretty-json'
6
import { Home } from './pages/home'
@@ -31,6 +32,7 @@ export class App {
31
32
private initializeGlobalMiddlewares() {
33
this.app.use(logger())
34
this.app.use(prettyJSON())
35
+ this.app.use(cors())
36
}
37
38
private initializeSwaggerUI() {
0 commit comments