pub struct CorsLayer;Expand description
§CORS Layer
This struct represents the CORS Layer which handles Cross-Origin Resource Sharing configuration.
The layer is a wrapper around tower_http::cors::CorsLayer.
Configures which origins, methods, headers, and credentials are allowed
for cross-origin requests.
Implementations§
Auto Trait Implementations§
impl Freeze for CorsLayer
impl RefUnwindSafe for CorsLayer
impl Send for CorsLayer
impl Sync for CorsLayer
impl Unpin for CorsLayer
impl UnsafeUnpin for CorsLayer
impl UnwindSafe for CorsLayer
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