Commit ef50372
fix(hono): allow If-Match in default CORS headers so cross-origin OCC saves work (objectui#2572) (#3067)
The REST record PATCH accepts the OCC token as an If-Match header —
objectui's record-level inline edit sends it on every save — but the default
CORS allow-list (plugin-hono-server + the hono adapter) omitted it, so on
split-origin deployments the preflight failed and every inline-edit save
died in the browser with 'Failed to fetch'. Found live while dogfooding
objectui#2572 (console dev :5191 against a showcase backend on :4022); same
split-origin class as the #2548 Bearer fixes.
Explicit user-supplied allowHeaders still win unchanged; new unit test pins
If-Match in the default list.
Claude-Session: https://claude.ai/code/session_01JQjNZDdqmz2QHGQndpjZrR
Co-authored-by: Claude <noreply@anthropic.com>1 parent 330ceba commit ef50372
4 files changed
Lines changed: 34 additions & 2 deletions
File tree
- .changeset
- packages
- adapters/hono/src
- plugins/plugin-hono-server/src
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
186 | 186 | | |
187 | 187 | | |
188 | 188 | | |
189 | | - | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
190 | 192 | | |
191 | 193 | | |
192 | 194 | | |
| |||
Lines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
255 | 255 | | |
256 | 256 | | |
257 | 257 | | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
258 | 270 | | |
259 | 271 | | |
260 | 272 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
279 | 279 | | |
280 | 280 | | |
281 | 281 | | |
282 | | - | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
283 | 288 | | |
284 | 289 | | |
285 | 290 | | |
| |||
0 commit comments