Add origin/host validation and warning for exposed serves (#1270)

This commit is contained in:
boatbomber 2026-06-07 15:51:05 -07:00 • committed by GitHub
parent 444dc11b26
commit ac6941f054
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 852 additions and 11 deletions

View file

@ -207,6 +207,10 @@ impl ServeSession {
self.root_project.serve_address
}
pub fn serve_allowed_hosts(&self) -> &[String] {
&self.root_project.serve_allowed_hosts
}
pub fn root_dir(&self) -> &Path {
self.root_project.folder_location()
}