- 05 Apr, 2020 1 commit
-
-
Hector Sanjuan authored
This commit upgrades go-ipfs-cmds and configures the commands HTTP API Handler to only allow POST/OPTIONS, disallowing GET and others in the handling of command requests in the IPFS HTTP API (where before every type of request method was handled, with GET/POST/PUT/PATCH being equivalent). The Read-Only commands that the HTTP API attaches to the gateway endpoint will additional handled GET as they did before (but stop handling PUT,DELETEs). By limiting the request types we address the possibility that a website accessed by a browser abuses the IPFS API by issuing GET requests to it which have no Origin or Referrer set, and are thus bypass CORS and CSRF protections. This is a breaking change for clients that relay on GET requests against the HTTP endpoint (usually :5001). Applications integrating on top of the gateway-read-only API should still work (including cross-domain access). Co-Authored-By: Steven Allen <steven@stebalien.com> Co-Authored-By: Marcin Rataj <lidel@lidel.org>
-
- 09 Mar, 2020 1 commit
-
-
Steven Allen authored
-
- 26 Feb, 2020 1 commit
-
-
Steven Allen authored
-
- 12 Sep, 2019 1 commit
-
-
Steven Allen authored
The patches that required the replace directives have been merged upstream. Unfortunately, those branches have now been deleted, breaking the build. GAH!
-
- 11 Sep, 2019 1 commit
-
-
Steven Allen authored
1. This means those deps don't get pulled in unless we actually need to test. 2. It means we can cordon all the golangci-lint module replace hacks off into a separate package.
-