rajivjc / clinicaltrials-on-blockchain

Demonstrate how blockchains can be used to improve data transparency in clinical trials
16 stars 7 forks source link

IPFS Configurations missing from README #6

Open salmanzr opened 6 years ago

salmanzr commented 6 years ago

In order for the web app to upload/retrieve files from IPFS, you will need to add the proper IPFS configurations for access control. The following commands will resolve the issue:

ipfs config --json API.HTTPHeaders.Access-Control-Allow-Credentials '["true"]' ipfs config --json API.HTTPHeaders.Access-Control-Allow-Methods '["PUT", "POST", "GET"]' ipfs config --json API.HTTPHeaders.Access-Control-Allow-Headers '["Authorization"]' ipfs config --json API.HTTPHeaders.Access-Control-Expose-Headers '["Location"]' ipfs config --json API.HTTPHeaders.Access-Control-Allow-Origin '["*"]'

Also, it would be nice to put a license for this repo too. Thanks.