ipfs-cluster/cmd/ipfs-cluster-service
Hector Sanjuan 862c1eb3ea Fix #382: Extract headers from IPFS API requests & apply them to hijacked ones.
This commit makes the proxy extract useful fixed headers (like CORS) from
the IPFS daemon API responses and then apply them to the responses
from hijacked endpoints like /add or /repo/stat.

It does this by caching a list of headers from the first IPFS API
response which has them. If we have not performed any proxied request or
managed to obtain the headers we're interested in, this will try triggering a
request to "/api/v0/version" to obtain them first.

This should fix the issues with using Cluster proxy with IPFS Companion and
Chrome.

License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-12-18 16:05:12 +01:00
..
dist Move ipfs-cluster-service and ipfs-cluster-ctl to cmd/ 2018-09-27 20:56:09 +02:00
configs.go Merge branch 'master' of github.com:ipfs/ipfs-cluster into issue_453 2018-11-03 20:24:15 +05:30
daemon.go Issue #453 Extract the IPFS Proxy from ipfshttp 2018-11-01 15:54:05 +05:30
lock.go Move ipfs-cluster-service and ipfs-cluster-ctl to cmd/ 2018-09-27 20:56:09 +02:00
main.go Fix #382: Extract headers from IPFS API requests & apply them to hijacked ones. 2018-12-18 16:05:12 +01:00
Makefile Move ipfs-cluster-service and ipfs-cluster-ctl to cmd/ 2018-09-27 20:56:09 +02:00
state.go Issue #532 -f init should clean up state 2018-10-18 19:06:07 +05:30