Page MenuHomePhabricator

[alias-server] add cors support
ClosedPublic

Authored by bytesofman on Mar 15 2023, 23:56.

Details

Reviewers
emack
Group Reviewers
Restricted Project
Commits
rABC4a784dc5f415: [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

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable