Enable Link header in CORS

This commit is contained in:
Alex Gleason
2023-04-29 21:07:59 -05:00
parent 26cf528fca
commit 780b3aeb01

View File

@@ -28,7 +28,7 @@ type AppController = Handler<AppEnv>;
const app = new Hono<AppEnv>();
app.use('/*', cors(), setAuth);
app.use('/*', cors({ origin: '*', exposeHeaders: ['link'] }), setAuth);
app.get('/api/v1/instance', instanceController);