From 780b3aeb01d9f1547ab545d95430dae5d3f25fb1 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Sat, 29 Apr 2023 21:07:59 -0500 Subject: [PATCH] Enable Link header in CORS --- src/app.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app.ts b/src/app.ts index 7d08d6cd..6da3a791 100644 --- a/src/app.ts +++ b/src/app.ts @@ -28,7 +28,7 @@ type AppController = Handler; const app = new Hono(); -app.use('/*', cors(), setAuth); +app.use('/*', cors({ origin: '*', exposeHeaders: ['link'] }), setAuth); app.get('/api/v1/instance', instanceController);