mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 03:19:46 +00:00
Enable Link header in CORS
This commit is contained in:
parent
26cf528fca
commit
780b3aeb01
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue