Commit b929f76
fix(llmo): temporary cloudflareToken body/query fallback for CF token (#2701)
## Temporary workaround — revert before/after header allowlisting
The Cloudflare onboarding endpoints expect the Cloudflare token in the
`x-cloudflare-token` header, but that custom header is **not yet
allowlisted in the CDN/network config**, so it's stripped before
reaching the service — blocking end-to-end verification.
This change adds a **temporary fallback**: `getCfToken` accepts the
token from a `cloudflareToken` field in the request **body** (POST:
deploy / routes) or **query string** (GET: accounts / zones) when the
header is absent. The header still takes precedence.
### Notes
- **Intentionally NOT documented in the OpenAPI spec** — it's a
temporary workaround, not part of the contract.
- 1 parent a1ea182 commit b929f76
2 files changed
Lines changed: 31 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
23 | 27 | | |
24 | 28 | | |
25 | 29 | | |
| |||
61 | 65 | | |
62 | 66 | | |
63 | 67 | | |
64 | | - | |
65 | | - | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
66 | 76 | | |
67 | 77 | | |
68 | 78 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
184 | 184 | | |
185 | 185 | | |
186 | 186 | | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
187 | 195 | | |
188 | 196 | | |
189 | 197 | | |
| |||
313 | 321 | | |
314 | 322 | | |
315 | 323 | | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
316 | 335 | | |
317 | 336 | | |
318 | 337 | | |
| |||
0 commit comments