pub struct CspConfig {
pub connect_domains: Option<Vec<String>>,
pub resource_domains: Option<Vec<String>>,
}Expand description
Content Security Policy configuration for UI resources
Fields§
§connect_domains: Option<Vec<String>>Allowed origins for network requests (fetch, XHR, WebSocket)
resource_domains: Option<Vec<String>>Allowed origins for static resources (images, scripts, fonts)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for CspConfig
impl<'de> Deserialize<'de> for CspConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for CspConfig
impl RefUnwindSafe for CspConfig
impl Send for CspConfig
impl Sync for CspConfig
impl Unpin 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