mirror of
https://github.com/actix/actix-extras.git
synced 2025-06-25 18:09:22 +02:00
allow to set default content encoding on application level
This commit is contained in:
@ -441,7 +441,6 @@ impl CorsBuilder {
|
||||
/// [Resource Processing Model](https://www.w3.org/TR/cors/#resource-processing-model).
|
||||
///
|
||||
/// Defaults to `All`.
|
||||
/// ```
|
||||
pub fn allowed_origin(&mut self, origin: &str) -> &mut CorsBuilder {
|
||||
if let Some(cors) = cors(&mut self.cors, &self.error) {
|
||||
match Uri::try_from(origin) {
|
||||
|
Reference in New Issue
Block a user