1
0
mirror of https://github.com/actix/actix-extras.git synced 2025-06-26 10:27:42 +02:00

Fix expose_any_header setter (#143)

This commit is contained in:
Julian Tescher
2020-12-31 04:13:36 -08:00
committed by GitHub
parent 699846d965
commit cf970ee091
2 changed files with 3 additions and 1 deletions

View File

@ -318,7 +318,7 @@ impl Cors {
/// See [`Cors::expose_headers`] for more info on exposed response headers.
pub fn expose_any_header(mut self) -> Cors {
if let Some(cors) = cors(&mut self.inner, &self.error) {
cors.allowed_origins = AllOrSome::All;
cors.expose_headers = AllOrSome::All;
}
self