mirror of
https://github.com/djdevin/recflare.git
synced 2026-10-27 16:08:58 -07:00
Initial commit
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
import { cors } from 'hono/cors'
|
||||
|
||||
/** Default CORS handler */
|
||||
export function withDefaultCors() {
|
||||
return cors({
|
||||
origin: '*',
|
||||
allowMethods: ['GET', 'POST', 'PUT', 'PATCH', 'DELETE', 'OPTIONS', 'HEAD'],
|
||||
allowHeaders: ['Content-Type', 'Authorization'],
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user