remove spaces from CSP header to save a few bytes

Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
strawberry 2024-10-25 21:13:14 -04:00
parent 2ce91f33af
commit 0efe24a028

View file

@ -24,15 +24,15 @@ use tracing::Level;
use crate::{request, router};
const CONDUWUIT_CSP: &[&str] = &[
"sandbox",
const CONDUWUIT_CSP: &[&str; 5] = &[
"default-src 'none'",
"frame-ancestors 'none'",
"form-action 'none'",
"base-uri 'none'",
"sandbox",
];
const CONDUWUIT_PERMISSIONS_POLICY: &[&str] = &["interest-cohort=()", "browsing-topics=()"];
const CONDUWUIT_PERMISSIONS_POLICY: &[&str; 2] = &["interest-cohort=()", "browsing-topics=()"];
pub(crate) fn build(services: &Arc<Services>) -> Result<(Router, Guard)> {
let server = &services.server;