Enable Link header in CORS

This commit is contained in:
Alex Gleason 2023-04-29 21:07:59 -05:00
parent 26cf528fca
commit 780b3aeb01
No known key found for this signature in database
GPG Key ID: 7211D1F99744FBB7
1 changed files with 1 additions and 1 deletions

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);