Skip to main content

update_security_settings

Function update_security_settings 

Source
pub async fn update_security_settings(
    app_base_url: String,
    cookie_secure: bool,
    trusted_proxy_count: u32,
    max_sessions_per_user: u32,
) -> Result<SecuritySettings, ApiError>
Expand description

更新安全配置。

所有字段会被规范化/clamp 后写入;站点地址缺少 http(s) 协议或主机时拒绝保存。 写入后失效 moka 缓存,数秒内全链路生效。