Add Permissions-Policy header
This commit is contained in:
parent
234e77d08a
commit
6f1e00e737
@ -2,7 +2,7 @@ use std::sync::Arc;
|
||||
|
||||
use actix::Actor;
|
||||
use actix_identity::{CookieIdentityPolicy, IdentityService};
|
||||
use actix_web::{App, get, HttpResponse, HttpServer, web};
|
||||
use actix_web::{App, get, HttpResponse, HttpServer, middleware, web};
|
||||
use actix_web::cookie::SameSite;
|
||||
use actix_web::cookie::time::Duration;
|
||||
use actix_web::middleware::Logger;
|
||||
@ -97,6 +97,8 @@ async fn main() -> std::io::Result<()> {
|
||||
.app_data(web::Data::new(jwt_signer.clone()))
|
||||
.app_data(web::Data::new(webauthn_manager.clone()))
|
||||
|
||||
.wrap(middleware::DefaultHeaders::new()
|
||||
.add(("Permissions-Policy", "interest-cohort=()")))
|
||||
.wrap(Logger::default())
|
||||
.wrap(AuthMiddleware {})
|
||||
.wrap(IdentityService::new(policy))
|
||||
|
Loading…
Reference in New Issue
Block a user