322e87dd59
By default, CORS headers allowing GET requests from everywhere are set. This should facilitate the IPFS Web UI integration with the Cluster API. This commit refactors the sendResponse methods in the API, merging them into one as it was difficult to follow the flows that actually send something to the client. All tests now check the presence of the configured headers too, to make sure no route was missed. License: MIT Signed-off-by: Hector Sanjuan <code@hector.link> |
||
---|---|---|
.. | ||
client | ||
test | ||
config_test.go | ||
config.go | ||
restapi_test.go | ||
restapi.go |