HomePhabricator

[alias-server] add cors support

Description

[alias-server] add cors support

Summary:
T3001

Depends on D13346

Add cors support so Cashtab + other websites can use the server

Test Plan:
tbh I'm not sure how to test this locally. I've used this approach on other servers. We can also expand this to whitelist certain domains if we are getting traffic problems.
node index.js and make sure you can still navigate to localhost:5000/aliases

Reviewers: #bitcoin_abc, emack

Reviewed By: #bitcoin_abc, emack

Differential Revision: https://reviews.bitcoinabc.org/D13347

Details

Provenance
bytesofmanAuthored on Mar 15 2023, 23:54
bytesofmanPushed on Mar 16 2023, 11:57
Reviewer
Restricted Project
Differential Revision
D13347: [alias-server] add cors support
Parents
rABC120891af673c: [alias-server] log API requester and hostname
Branches
Unknown
Tags
Unknown