Commit b50c884
Auto-allow the ?dn parked domain as a CSP frame-ancestor (#14)
Masked-forwarded parked domains (Porkbun frameset, e.g. moshscript.com) iframe
moshcoding.com/?dn=<self>, but the CSP frame-ancestors only listed the domains
in FRAME_ANCESTORS, so any domain not hand-added there was blocked by the
browser and rendered blank. The framed request carries its own ?dn, so trust it
to iframe just its own tenant page — new parked domains now work without editing
FRAME_ANCESTORS each time. 'self' + the env list still apply; the dn is
hostname-validated before being added.
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>1 parent 6f0b79a commit b50c884
1 file changed
Lines changed: 13 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
10 | 20 | | |
11 | 21 | | |
12 | 22 | | |
| |||
21 | 31 | | |
22 | 32 | | |
23 | 33 | | |
24 | | - | |
| 34 | + | |
25 | 35 | | |
26 | 36 | | |
27 | 37 | | |
| |||
0 commit comments