Commit 25e29ef
fix(apollo): use X-Api-Key header instead of Authorization: Bearer (#81)
Fixes #80.
Apollo's REST API requires the API key in the `X-Api-Key` header.
`requestApolloJson` (`src/providers/apollo/executors.ts`) was sending
`Authorization: Bearer`, so all five Apollo actions and the credential
validator failed with `Invalid access credentials`.
One-line header swap. Verified against
`/api/v1/usage_stats/api_usage_stats` with the same master key:
`X-Api-Key` returns 200, `Authorization: Bearer` returns 401.
---------
Signed-off-by: Kevin Cui <bh@bugs.cc>
Co-authored-by: konradre <konradre@users.noreply.github.com>
Co-authored-by: Kevin Cui <bh@bugs.cc>1 parent 62796b0 commit 25e29ef
2 files changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
172 | 172 | | |
173 | 173 | | |
174 | 174 | | |
175 | | - | |
| 175 | + | |
176 | 176 | | |
177 | 177 | | |
178 | 178 | | |
| |||
0 commit comments