block floc

This commit is contained in:
realaravinth 2021-06-15 20:23:39 +05:30
parent 5e6e04514e
commit 6a56ff8ea9
No known key found for this signature in database
GPG key ID: AD9F0F08E855ED88
2 changed files with 4 additions and 1 deletions

4
Cargo.lock generated
View file

@ -1,5 +1,7 @@
# This file is automatically @generated by Cargo. # This file is automatically @generated by Cargo.
# It is not intended for manual editing. # It is not intended for manual editing.
version = 3
[[package]] [[package]]
name = "actix" name = "actix"
version = "0.10.0" version = "0.10.0"
@ -439,7 +441,7 @@ dependencies = [
[[package]] [[package]]
name = "argon2-creds" name = "argon2-creds"
version = "0.2.1" version = "0.2.1"
source = "git+https://github.com/realaravinth/argon2-creds#c899181a1bdb65134cc329f26c5dd3601d89fc45" source = "git+https://github.com/realaravinth/argon2-creds?branch=master#c899181a1bdb65134cc329f26c5dd3601d89fc45"
dependencies = [ dependencies = [
"ammonia", "ammonia",
"derive_builder 0.10.2", "derive_builder 0.10.2",

View file

@ -106,6 +106,7 @@ async fn main() -> std::io::Result<()> {
HttpServer::new(move || { HttpServer::new(move || {
App::new() App::new()
.wrap(actix_middleware::Logger::default()) .wrap(actix_middleware::Logger::default())
.wrap(actix_middleware::DefaultHeaders::new().header("Permissions-Policy", "interest-cohort=()"))
.wrap(get_identity_service()) .wrap(get_identity_service())
.wrap(actix_middleware::Compress::default()) .wrap(actix_middleware::Compress::default())
.data(data.clone()) .data(data.clone())