From 991495893ae75bff2b3283c8250f706ff92d7f6f Mon Sep 17 00:00:00 2001 From: Mylloon Date: Fri, 13 Oct 2023 17:22:22 +0200 Subject: [PATCH] Add header, cf #34 --- src/main.rs | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/main.rs b/src/main.rs index 9b13a10..f1dc440 100644 --- a/src/main.rs +++ b/src/main.rs @@ -29,10 +29,14 @@ async fn main() -> Result<()> { HttpServer::new(move || { App::new() .app_data(web::Data::new(config.to_owned())) - .wrap(DefaultHeaders::new().add(( - "Onion-Location", - config.fc.onion.as_deref().unwrap_or_default(), - ))) + .wrap( + DefaultHeaders::new() + .add(( + "Onion-Location", + config.fc.onion.as_deref().unwrap_or_default(), + )) + .add(("Permissions-Policy", "interest-cohort=()")), + ) .service(web::scope("/api").service(web::scope("v1").service(api_v1::love))) .service(index::page) .service(agreements::security)