chore(csp): fix trailing semicolon (#863)

This commit is contained in:
Jakub Kołodziejczak
2022-11-06 19:50:45 +01:00
committed by GitHub
parent d0117289c9
commit d8d82fa12d

View File

@@ -80,7 +80,7 @@ fn serve_path(path: String, can_set_security_headers: bool) -> Response<BoxBody>
}
fn set_security_headers(mut res: Builder) -> Builder {
let csp = "frame-ancestors 'none'; frame-src 'none'; worker-src 'self'; child-src 'none'; object-src 'none'; script-src 'self' 'unsafe-inline'";
let csp = "frame-ancestors 'none'; frame-src 'none'; worker-src 'self'; child-src 'none'; object-src 'none'; script-src 'self' 'unsafe-inline';";
res = res.header("Content-Security-Policy", csp);
res = res.header("X-Frame-Options", "DENY");
res = res.header("X-Content-Type-Options", "nosniff");