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, ServerFnError>
Expand description

更新安全配置。

所有字段会被规范化/clamp 后写入。写入后失效 moka 缓存,数秒内全链路生效。

§Handler information

  • Method: post
  • Path: <auto>