Commit 31e08c5
committed
Address review feedback on COOKIE_DOMAIN
- Apply Domain attribute to all three Set-Cookie sites, including the
origin-response success path that was missed in the first pass.
- Move the cookie builder into helpers/misc with input validation:
trim whitespace and reject anything other than hostname-safe chars
so a malformed env var can't inject into the Set-Cookie header.
- Invalid values are logged and ignored (cookie falls back to
host-only), keeping the worker resilient to operator typos.1 parent cc357c9 commit 31e08c5
5 files changed
Lines changed: 43 additions & 27 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
55 | 72 | | |
56 | 73 | | |
57 | 74 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
240 | 240 | | |
241 | 241 | | |
242 | 242 | | |
243 | | - | |
244 | | - | |
245 | | - | |
246 | | - | |
247 | | - | |
248 | | - | |
249 | | - | |
250 | | - | |
251 | | - | |
252 | | - | |
253 | | - | |
254 | | - | |
255 | 243 | | |
256 | 244 | | |
257 | 245 | | |
| |||
360 | 348 | | |
361 | 349 | | |
362 | 350 | | |
363 | | - | |
| 351 | + | |
364 | 352 | | |
365 | 353 | | |
366 | 354 | | |
| |||
500 | 488 | | |
501 | 489 | | |
502 | 490 | | |
503 | | - | |
| 491 | + | |
504 | 492 | | |
505 | 493 | | |
506 | 494 | | |
| |||
537 | 525 | | |
538 | 526 | | |
539 | 527 | | |
540 | | - | |
| 528 | + | |
541 | 529 | | |
542 | 530 | | |
543 | 531 | | |
| |||
0 commit comments