mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 11:29:46 +00:00
Set CORS header on NIP-11 response
This commit is contained in:
parent
1c4f0a87d5
commit
56c782e6e5
1 changed files with 2 additions and 0 deletions
|
|
@ -9,6 +9,8 @@ const relayInfoController: AppController = async (c) => {
|
|||
const store = await Storages.db();
|
||||
const meta = await getInstanceMetadata(store, c.req.raw.signal);
|
||||
|
||||
c.res.headers.set('access-control-allow-origin', '*');
|
||||
|
||||
return c.json({
|
||||
name: meta.name,
|
||||
description: meta.about,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue