diff --git a/src/canisters/frontend/ic-asset/src/asset/config.rs b/src/canisters/frontend/ic-asset/src/asset/config.rs index 4d000cfa94..54bb6770de 100644 --- a/src/canisters/frontend/ic-asset/src/asset/config.rs +++ b/src/canisters/frontend/ic-asset/src/asset/config.rs @@ -248,16 +248,13 @@ impl AssetConfig { (_, Maybe::Null) => self.headers = None, (_, Maybe::Absent) => (), }; - if other.ignore.is_some() { self.ignore = other.ignore; } - if other.enable_aliasing.is_some() { self.enable_aliasing = other.enable_aliasing; } - - if other.allow_raw_access.is_some() { + if self.allow_raw_access.is_none() && other.allow_raw_access.is_some() { self.allow_raw_access = other.allow_raw_access; } self