diff --git a/server.ts b/server.ts index 70cb8d2..b901721 100644 --- a/server.ts +++ b/server.ts @@ -9,6 +9,15 @@ const server = new Server({ root: `${Deno.cwd()}/dist`, }) +server.use(async (request, next) => { + // Here you can modify the request before being passed to next middlewares + const response = await next(request); + + response.headers.set('Access-Control-Allow-Origin', '*') + // Here you can modify the response before being returned to the previous middleware + return response; +}); + server.use(expires()) server.use(not_found({ diff --git a/src/static/.well-known/nostr.json b/src/static/.well-known/nostr.json index 0a95b88..1dd83ee 100644 --- a/src/static/.well-known/nostr.json +++ b/src/static/.well-known/nostr.json @@ -1 +1 @@ -{"names":{"_":"19279f92ae69bfa6df89438eeea81dae0f96af5dc4da225d7e081fc8f44d017a","sam":"19279f92ae69bfa6df89438eeea81dae0f96af5dc4da225d7e081fc8f44d017a"},"relays":{"19279f92ae69bfa6df89438eeea81dae0f96af5dc4da225d7e081fc8f44d017a":["wss://relay.froth.zone"]}} +{"names":{"sam_ap":"19279f92ae69bfa6df89438eeea81dae0f96af5dc4da225d7e081fc8f44d017a","sam":"5413736701706b45f4510eaca39deb5617fdf0370828d6f57c2a2d8ad4444688"},"relays":{"19279f92ae69bfa6df89438eeea81dae0f96af5dc4da225d7e081fc8f44d017a":["wss://relay.froth.zone"],"5413736701706b45f4510eaca39deb5617fdf0370828d6f57c2a2d8ad4444688":["wss://relay.froth.zone","wss://nostr.getgle.org"]}}