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