diff --git a/src/main.rs b/src/main.rs index 00d45ad..2480305 100644 --- a/src/main.rs +++ b/src/main.rs @@ -3,6 +3,7 @@ use rocket::form::Form; use rocket_dyn_templates::{Template, context}; use rocket::fs::FileServer; +use rocket::shield::Shield; use std::net::{IpAddr, Ipv4Addr}; @@ -53,6 +54,7 @@ fn rocket() -> _ { rocket::build() .mount("/", routes![index, login]) .mount("/static", FileServer::from("static")) // Serves files in the `static` directory + .attach(Shield::new()) .attach(Template::fairing()) }