This commit is contained in:
parent
56661ec436
commit
991495893a
1 changed files with 8 additions and 4 deletions
|
@ -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((
|
||||
.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)
|
||||
|
|
Loading…
Reference in a new issue