alexfigtree / CoreID

For MIT Human Dynamics group blockchain-backed individual identity open source prototype
MIT License
4 stars 5 forks source link

Express server to add CORS header #38

Closed akscanb closed 7 years ago

akscanb commented 7 years ago

I added an express server to see if I could deal with proxying all requests through it and add cors headers, but it seems it doesn't work as intended. You can try it yourself by running node server from the main CoreID directory.

jwalsh commented 7 years ago

@akscanb Will check but you might want to just bypass the issue by using NGINX in front of both bitcoind and the React application. This would be something like the following in nginx.conf and viewing the application at http://localhost:8080/ :

location /bitcoind { proxy_pass http://localhost:3885/; } location / { proxy_pass http://localhost:3000/; }

akscanb commented 7 years ago

Works!

dazzaji commented 7 years ago

Can you remind which issue number that was?


Sent from my iPhone

Daniel "Dazza" Greenwood law.MIT.edu & CIVICS.com Email: dazza@civics.com Mobile: +1 617-500-3644

On Jun 27, 2017, at 11:12 AM, akscanb notifications@github.com wrote:

I tried that and made the bitcoin client connect localhost:8080, but this stuff alone does not add the headers necessary. If you saw what I posted in nginx issue maybe we can take it from there.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.