Open salmanzr opened 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.
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.