pub struct CspConfig {
pub connect_domains: DirectivePolicy,
pub resource_domains: DirectivePolicy,
pub frame_domains: DirectivePolicy,
pub widgets: Vec<WidgetScoped>,
pub domain: Option<String>,
}Expand description
Complete CSP configuration: three global directives plus widget overrides.
Fields§
§connect_domains: DirectivePolicy§resource_domains: DirectivePolicy§frame_domains: DirectivePolicy§widgets: Vec<WidgetScoped>§domain: Option<String>Bare public host (no scheme) declared by the operator — feeds the
widget-domain meta fields (openai/widgetDomain and ui.domain) and
the proxy-URL injection into widget CSP. When None, the runtime
falls back to the tunnel URL, and when no public origin is available
at all (local-only dev) the injection is suppressed rather than
polluting widget config with localhost.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CspConfig
impl RefUnwindSafe for CspConfig
impl Send for CspConfig
impl Sync for CspConfig
impl Unpin for CspConfig
impl UnsafeUnpin for CspConfig
impl UnwindSafe for CspConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more