kubo/core
Juan Batiz-Benet d5f94be474 fix API handler to respect referer + exit on CORS
this commit makes the API handler short circuit the request if the
CORS headers say its not allowed. (the CORS handler only sets the
headers, but does not short-circuit)

It also makes the handler respect the referer again. See security
discussion at https://github.com/ipfs/go-ipfs/issues/1532

License: MIT
Signed-off-by: Juan Batiz-Benet <juan@benet.ai>
2015-07-28 23:08:11 -07:00
..
commands implement 'editor' abstraction 2015-07-28 15:00:07 -07:00
corehttp fix API handler to respect referer + exit on CORS 2015-07-28 23:08:11 -07:00
corenet Reorged imports from jbenet/go-ipfs to ipfs/go-ipfs 2015-03-31 12:52:25 -07:00
corerepo make offline commands respect timeout 2015-07-20 14:34:16 -07:00
corerouting Reorged imports from jbenet/go-ipfs to ipfs/go-ipfs 2015-03-31 12:52:25 -07:00
coreunix Change Process interface into object variable 2015-07-04 22:50:23 +07:00
mock Change Process interface into object variable 2015-07-04 22:50:23 +07:00
.gitignore ignore testdb 2014-07-05 15:04:04 -07:00
bootstrap_test.go Reorged imports from jbenet/go-ipfs to ipfs/go-ipfs 2015-03-31 12:52:25 -07:00
bootstrap.go core: bugfix: bootstrap random permutation 2015-04-20 06:00:42 -07:00
builder.go add option to only hash input 2015-06-22 15:21:53 -07:00
core_test.go Run 'gofmt -s -w' on these files 2015-05-19 06:11:15 +07:00
core.go make ping its own protocol 2015-07-13 19:19:25 -07:00
pathresolver_test.go Add test to detect invalid path 2015-07-04 02:50:15 +07:00
pathresolver.go Named error for no components 2015-05-22 09:18:49 -07:00