- 07 Sep, 2020 1 commit
-
-
Alex Potsides authored
* fix: allow requests from electron renderer The Electron Renderer process runs in an embedded browser window so has access to browser-native `fetch`. If this is used by `ipfs-http-client` to make requests against the HTTP API, the `User-Agent` header is set to a value that looks similar to a browser but no `Origin` or `Referer` headers are sent. The change here is to relax the user agent check to allow through requests from clients with `'Electron'` in their user agents.
-
- 29 Apr, 2020 2 commits
-
-
Hector Sanjuan authored
-
Hector Sanjuan authored
(when GET is not allowed).
-
- 06 Apr, 2020 2 commits
-
-
Hector Sanjuan authored
-
Hector Sanjuan authored
Addresses browsers being able to POST without control due to things like https://bugzilla.mozilla.org/show_bug.cgi?id=429594
-
- 04 Apr, 2020 1 commit
-
-
Steven Allen authored
Allowing methods isn't as simple as just allowing/disallowing them because different methods do different things. * HEAD: should be allowed everywhere GET is allowed. * OPTIONS: * When a CORS request is made, this will be handled by the CORS library. * Otherewise, we need to return the allowed methods. * POST: always allowed. * Everything else: always denied. Changing HandledMethods to a simple AllowGet makes it easier to "do the right thing".
-
- 03 Apr, 2020 1 commit
-
-
Hector Sanjuan authored
This Handler option is used it to allow/deny request by their method. The API is an RPC API so it normally should only work with PUT, but we also use a read-only, GET-based partial API that runs with the gateway. This commit makes the actual allowed (or handled) methods configurable. A test is added, and test facilities improved to be able to set/modify this option.
-
- 25 May, 2019 1 commit
-
-
Steven Allen authored
This: 1. Ensures the correct content type. 2. Tells browsers not to sniff the content type. This prevents any nasties from happening...
-
- 11 May, 2019 1 commit
-
-
Steven Allen authored
-
- 26 Oct, 2018 1 commit
-
-
Steven Allen authored
These should cover the bugs uncovered when trying to update go-ipfs-cmds in go-ipfs.
-
- 25 Oct, 2018 1 commit
-
-
Steven Allen authored
-
- 31 Aug, 2018 1 commit
-
-
keks authored
-