1 2 3 4 5 6 7 8
use actix_cors::Cors; pub fn cors_config() -> Cors { Cors::default() .allow_any_origin() .allow_any_method() .allow_any_header() }