Commit 167447f
committed
fix(shared): scope portless redirect fallback to glob entries only
Exact string entries in allowedRedirectOrigins (e.g. https://www.clerk.com)
were also matching ports they never declared because the portless-origin
test ran against all patterns. Port is part of the browser origin, so an
exact entry must remain port-sensitive.
The portless fallback now only applies when the original entry is a glob
(contains '*'), which covers the satellite-app use case where the pattern
is https://*.example.net and the dev server runs on :5173.1 parent 9a32372 commit 167447f
2 files changed
Lines changed: 15 additions & 14 deletions
File tree
Lines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
580 | 580 | | |
581 | 581 | | |
582 | 582 | | |
583 | | - | |
584 | | - | |
| 583 | + | |
585 | 584 | | |
586 | 585 | | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
587 | 590 | | |
588 | 591 | | |
589 | 592 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
436 | 436 | | |
437 | 437 | | |
438 | 438 | | |
439 | | - | |
440 | | - | |
441 | | - | |
442 | | - | |
443 | 439 | | |
444 | | - | |
445 | | - | |
446 | | - | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
447 | 444 | | |
448 | 445 | | |
449 | 446 | | |
450 | 447 | | |
451 | 448 | | |
452 | | - | |
453 | | - | |
454 | | - | |
455 | | - | |
456 | | - | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
457 | 455 | | |
458 | 456 | | |
459 | 457 | | |
| |||
0 commit comments