Fix video loading

This commit is contained in:
spikecodes 2021-01-30 11:00:55 -08:00
parent 49a6168607
commit a1d800a0f0

View File

@ -72,7 +72,7 @@ async fn main() -> std::io::Result<()> {
.header("Referrer-Policy", "no-referrer") .header("Referrer-Policy", "no-referrer")
.header("X-Content-Type-Options", "nosniff") .header("X-Content-Type-Options", "nosniff")
.header("X-Frame-Options", "DENY") .header("X-Frame-Options", "DENY")
.header("Content-Security-Policy", "default-src 'none'; style-src 'self' 'unsafe-inline'; base-uri 'none'; img-src 'self' data:; form-action 'self'; frame-ancestors 'none';")) .header("Content-Security-Policy", "default-src 'none'; media-src 'self'; style-src 'self' 'unsafe-inline'; base-uri 'none'; img-src 'self' data:; form-action 'self'; frame-ancestors 'none';"))
// Default service in case no routes match // Default service in case no routes match
.default_service(web::get().to(|| utils::error("Nothing here".to_string()))) .default_service(web::get().to(|| utils::error("Nothing here".to_string())))
// Read static files // Read static files