Repository navigation
Commit 9ec2472
fix(server): other sites can no longer frame the web app
The static SPA handler sent no anti-framing headers, so a page that shares the
session cookie's site could frame the app and steer a click onto a one-click
action such as approving an agent sign-in on /connect-agent. HTML responses now
send `Content-Security-Policy: frame-ancestors 'none'` and
`X-Frame-Options: DENY`.
Co-Authored-By: Claude Opus 5.5 <[email protected]>1 parent af9b4e4 commit 9ec2472
2 files changed
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
399 | 399 | | |
400 | 400 | | |
401 | 401 | | |
| 402 | + | |
| 403 | + | |
402 | 404 | | |
403 | 405 | | |
404 | 406 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
564 | 564 | | |
565 | 565 | | |
566 | 566 | | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
567 | 573 | | |
568 | 574 | | |
569 | 575 | | |
| |||
664 | 670 | | |
665 | 671 | | |
666 | 672 | | |
| 673 | + | |
667 | 674 | | |
668 | 675 | | |
669 | 676 | | |
| |||
700 | 707 | | |
701 | 708 | | |
702 | 709 | | |
| 710 | + | |
703 | 711 | | |
704 | 712 | | |
705 | 713 | | |
| |||
0 commit comments