Skip to content

Commit

Permalink
fix: add access-control-allow-origin header
Browse files Browse the repository at this point in the history
Signed-off-by: Ricardo Arturo Cabral Mejía <me@ricardocabral.io>
  • Loading branch information
cameri committed Dec 15, 2022
1 parent 50de2c1 commit 07131c1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/adapters/web-server-adapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ export class WebServerAdapter extends EventEmitter implements IWebServerAdapter
}

response.setHeader('content-type', 'application/nostr+json')
response.setHeader('access-control-allow-origin', '*')
const body = JSON.stringify(relayInformationDocument)
response.end(body)
} else {
Expand Down

0 comments on commit 07131c1

Please sign in to comment.